small compilation issues on misc systems

This commit is contained in:
Jean-Francois Dockes
2010-09-13 21:34:23 +02:00
parent 71c4a54ef4
commit 4385dd1b8b
5 changed files with 14 additions and 3 deletions
+3 -1
View File
@@ -554,7 +554,9 @@ void RclConfig::storeMissingHelperDesc(const string &s)
string fmiss = path_cat(getConfDir(), "missing");
FILE *fp = fopen(fmiss.c_str(), "w");
if (fp) {
fwrite(s.c_str(), s.size(), 1, fp);
if (fwrite(s.c_str(), s.size(), 1, fp) != 1) {
LOGERR(("storeMissingHelperDesc: fwrite failed\n"));
}
fclose(fp);
}
}