update all uses of ABS_PATH
[libguestfs.git] / daemon / glob.c
index f39832e..1c47ba5 100644 (file)
@@ -1,5 +1,5 @@
 /* libguestfs - the guestfsd daemon
- * Copyright (C) 2009 Red Hat Inc. 
+ * Copyright (C) 2009 Red Hat Inc.
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
@@ -32,7 +32,7 @@ do_glob_expand (char *pattern)
   glob_t buf;
 
   NEED_ROOT (NULL);
-  ABS_PATH (pattern, NULL);    /* Required so chroot can be used. */
+  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;