update all NEED_ROOT uses
[libguestfs.git] / daemon / grep.c
index c51dc0b..f0dbefd 100644 (file)
@@ -35,8 +35,8 @@ grep (const char *prog, const char *flag, char *regex, char *path)
   int r;
   char **lines;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  NEED_ROOT (return NULL);
+  ABS_PATH (path, return NULL);
 
   /* Make the path relative to /sysroot. */
   buf = sysroot_path (path);