]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virFindFileInPath: Don't pass NULL to g_canonicalize_filename()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Jun 2021 16:01:37 +0000 (18:01 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Jun 2021 19:14:03 +0000 (21:14 +0200)
commit9a51edebf88556823e05c3710ec378c976ce3386
treeb4868e57585fb5246860f13be4e6cc9fa57be22e
parent49d47342b34ff3a3b3ea7cfe8c31e66b5c6ebc18
virFindFileInPath: Don't pass NULL to g_canonicalize_filename()

If given file is not found in $PATH then g_find_program_in_path()
returns NULL. However, g_canonicalize_filename() does not accept
NULL as input.

Fixes: 65c2901906b5e2d707f9184ff3719a5375bab427
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/util/virfile.c