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
2014-04-24 10:47:44 +01:00
committed by Carlos R. Mafra
parent 278fdfa1db
commit aa890c8868
2 changed files with 14 additions and 5 deletions
+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);