X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrep.c;fp=daemon%2Fgrep.c;h=19e4683dbd7dc88ec749303bf8a004387d133b94;hb=0dd6c8c8442d4ff588f6dac2efab24d3409b0dec;hp=c51dc0b88fce3926724053574a13827e777d7746;hpb=4a5e13f15734aa7363e605f716ad6e29c67475c5;p=libguestfs.git diff --git a/daemon/grep.c b/daemon/grep.c index c51dc0b..19e4683 100644 --- a/daemon/grep.c +++ b/daemon/grep.c @@ -36,7 +36,7 @@ grep (const char *prog, const char *flag, char *regex, char *path) char **lines; NEED_ROOT (NULL); - ABS_PATH (path, NULL); + ABS_PATH (path, return NULL); /* Make the path relative to /sysroot. */ buf = sysroot_path (path);