update all uses of ABS_PATH
[libguestfs.git] / daemon / ls.c
index e2ca55f..8ae150b 100644 (file)
@@ -38,7 +38,7 @@ do_ls (char *path)
   struct dirent *d;
 
   NEED_ROOT (NULL);
-  ABS_PATH (path, NULL);
+  ABS_PATH (path, return NULL);
 
   CHROOT_IN;
   dir = opendir (path);