mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-12 11:54:45 +00:00
coverity: don't risk exec()ing NULL
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
This commit is contained in:
parent
17d252a822
commit
d9b32b0900
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user