Commit d9b32b09 by Serge Hallyn

coverity: don't risk exec()ing NULL

parent 17d252a8
...@@ -231,6 +231,9 @@ static bool criu_version_ok() ...@@ -231,6 +231,9 @@ static bool criu_version_ok()
exit(1); exit(1);
path = on_path("criu", NULL); path = on_path("criu", NULL);
if (!path)
exit(1);
execv(path, args); execv(path, args);
exit(1); exit(1);
} else { } else {
......
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