generator.ml: new type, "Pathname"
[libguestfs.git] / daemon / ls.c
index e2ca55f..8dba1bf 100644 (file)
@@ -37,8 +37,8 @@ do_ls (char *path)
   DIR *dir;
   struct dirent *d;
 
-  NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  NEED_ROOT (return NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   dir = opendir (path);