summaryrefslogtreecommitdiff
path: root/l10ntools/source/localize.cxx
diff options
context:
space:
mode:
authorZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-21 17:20:38 +0100
committerZolnai Tamás <zolnaitamas2000@gmail.com>2013-03-22 08:17:03 +0100
commit0552b4334c2fb6b130ec05934b952b60418aadca (patch)
tree7882cf912ea8b76d4e71c63c275fcd7a28a36554 /l10ntools/source/localize.cxx
parent33b0684dd721c4ee5c24d2c9b3b77974db882046 (diff)
Check return value of system()
Change-Id: I1b9e31b8c64ed8bf7eb073f036a7fdda39a15392
Diffstat (limited to 'l10ntools/source/localize.cxx')
-rw-r--r--l10ntools/source/localize.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/l10ntools/source/localize.cxx b/l10ntools/source/localize.cxx
index b608ee00959b..b19521ad84c6 100644
--- a/l10ntools/source/localize.cxx
+++ b/l10ntools/source/localize.cxx
@@ -284,7 +284,13 @@ void handleFilesOfDir(
aPOStream.close();
if( bDel )
{
- system(OString("rm " + sPotFile).getStr());
+ if ( system(OString("rm " + sPotFile).getStr()) != 0 )
+ {
+ cerr
+ << "Error: Cannot remove entryless pot file: "
+ << sPotFile.getStr() << "\n";
+ throw false; //TODO
+ }
}
}
//Remove empty pot directories