X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fgrep.c;h=19e4683dbd7dc88ec749303bf8a004387d133b94;hb=ecd828beb250648541492a69a188a71305897e4e;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);