diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-09-21 09:12:24 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-09-21 11:28:21 +0200 |
commit | ed480e918b6c1d3566ebfdfae6687bc4a4a06c10 (patch) | |
tree | 34bce1ae06cbde200fd2b21ce44638d2c192b585 /sfx2/qa | |
parent | ffe84f49270e0a8818365ca7d1fd5242abff5562 (diff) |
coverity#1439338 silence Time of check time of use
Change-Id: I69d17f9190c165ed787b68febd2cdb37c4e16b9e
Reviewed-on: https://gerrit.libreoffice.org/60852
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sfx2/qa')
-rw-r--r-- | sfx2/qa/cppunit/test_misc.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx index 4f4920185e0d..c86eca8262a2 100644 --- a/sfx2/qa/cppunit/test_misc.cxx +++ b/sfx2/qa/cppunit/test_misc.cxx @@ -181,6 +181,7 @@ void MiscTest::testHardLinks() xStorable->store(); struct stat buf; + // coverity[toctou] - this is legitimate in the context of this text int nRet = stat(aOld.getStr(), &buf); CPPUNIT_ASSERT_EQUAL(0, nRet); // This failed: hard link count was 1, the hard link broke on store. |