generator.ml: new type, "Pathname"
[libguestfs.git] / daemon / glob.c
index f15d5e5..40b7c50 100644 (file)
@@ -31,8 +31,8 @@ do_glob_expand (char *pattern)
   int r;
   glob_t buf;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (pattern, NULL);    /* Required so chroot can be used. */
+  NEED_ROOT (return NULL);
+  ABS_PATH (pattern, return NULL);     /* Required so chroot can be used. */
 
   /* glob(3) in glibc never calls chdir, so this seems to be safe: */
   CHROOT_IN;