coverity: don't risk exec()ing NULL

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
Serge Hallyn 2015-06-08 10:37:55 -05:00
parent 17d252a822
commit d9b32b0900

View File

@ -231,6 +231,9 @@ static bool criu_version_ok()
exit(1);
path = on_path("criu", NULL);
if (!path)
exit(1);
execv(path, args);
exit(1);
} else {