Commit d7ec8f0d authored by Rusty Russell's avatar Rusty Russell

tools: fix compile warning under Ubuntu

parent b7f7224b
......@@ -79,7 +79,8 @@ static int unlink_all(char *dir)
{
char cmd[strlen(dir) + sizeof("rm -rf ")];
sprintf(cmd, "rm -rf %s", dir);
system(cmd);
if (system(cmd) != 0)
warn("Could not remove temporary work in %s", dir);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment