summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-27 21:00:19 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-10-28 10:31:28 +0000
commitfafcf07ec98db304a07e21ddc984bf94a68344c6 (patch)
tree5c914d4a814f424aca5b29ef2244c4f05824b6b9 /idlc
parente7d9a137ca1cdf4f403d94166e52de31f1119a2c (diff)
coverity#982167 Unchecked return value
Change-Id: I14c306132a8f12c6f7ecebe5b012984d04bf0d91
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/idlcproduce.cxx6
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();