[PATCH 1 of 2] Fixed check on return value when trying to write temp file
Wald Commits
scm-commit at wald.intevation.org
Tue Apr 22 16:27:02 CEST 2014
# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1398176776 -7200
# Node ID a7163018de2f40d42f0a587aafc12775a4f3653f
# Parent 8f50533027af9bf1526479f1f53383448c78b759
Fixed check on return value when trying to write temp file.
diff -r 8f50533027af -r a7163018de2f ui/installwrapper.cpp
--- a/ui/installwrapper.cpp Tue Apr 22 13:00:15 2014 +0000
+++ b/ui/installwrapper.cpp Tue Apr 22 16:26:16 2014 +0200
@@ -43,10 +43,10 @@
}
foreach (const QString &b64data, mChoices) {
- if (!choicesFile->write(b64data.toLatin1())) {
+ if (choicesFile->write(b64data.toLatin1()) == -1) {
return false;
}
- if (!choicesFile->write("\n")) {
+ if (choicesFile->write("\n") == -1) {
return false;
}
}
More information about the Trustbridge-commits
mailing list