WPrefs: Fixed compiler warnings

This patch is used to catch some return function value, to make the
compiler happy.
This commit is contained in:
David Maciejak authored and Carlos R. Mafra committed 2014-04-24 10:47:44 +01:00
1 parent 278fdfa1db
commit aa890c8868
2 files changed
+14 -5

No files matched your search

+2 -1
View File
@@ -714,7 +714,8 @@ static void storeCommandInScript(const char *cmd, const char *line)
wfree(tmppath);
}
sprintf(buffer, "chmod u+x %s", path);
system(buffer);
if (system(buffer) == -1)
werror(_("could not execute command \"%s\""), buffer);
end:
wfree(path);