X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;ds=sidebyside;f=daemon%2Fgrep.c;h=19e4683dbd7dc88ec749303bf8a004387d133b94;hb=8601bbda56cdb2b8491b6e2054596ec9599c38f1;hp=c51dc0b88fce3926724053574a13827e777d7746;hpb=9847e0c07d5907887e26ec60192fa12aa46277ee;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);