diff --git a/src/util/virfile.c b/src/util/virfile.c index c302202573..4f98b011be 100644 --- a/src/util/virfile.c +++ b/src/util/virfile.c @@ -1667,6 +1667,8 @@ virFindFileInPath(const char *file) return NULL; path = g_find_program_in_path(file); + if (!path) + return NULL; /* Workaround for a bug in g_find_program_in_path() not returning absolute * path as documented. This has been fixed in