diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-27 21:00:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-28 10:31:28 +0000 |
commit | fafcf07ec98db304a07e21ddc984bf94a68344c6 (patch) | |
tree | 5c914d4a814f424aca5b29ef2244c4f05824b6b9 /idlc/source | |
parent | e7d9a137ca1cdf4f403d94166e52de31f1119a2c (diff) |
coverity#982167 Unchecked return value
Change-Id: I14c306132a8f12c6f7ecebe5b012984d04bf0d91
Diffstat (limited to 'idlc/source')
-rw-r--r-- | idlc/source/idlcproduce.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/idlc/source/idlcproduce.cxx b/idlc/source/idlcproduce.cxx index cfc093c4227f..060ab9d06200 100644 --- a/idlc/source/idlcproduce.cxx +++ b/idlc/source/idlcproduce.cxx @@ -180,7 +180,11 @@ produceFile(const OString& regFileName, sPair_t const*const pDepFile) if ( !idlc()->getRoot()->dump(rootKey) ) { rootKey.releaseKey(); - regFile.close(); + if (regFile.close() != REG_NO_ERROR) + { + fprintf(stderr, "%s: could not close registry file '%s'\n", + pOptions->getProgramName().getStr(), regFileName.getStr()); + } regFile.destroy(OStringToOUString(regFileName, RTL_TEXTENCODING_UTF8)); removeIfExists(regFileName); cleanPath(); |