git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
appliance: udev-174 moves udevd to /lib/udev/udevd (instead of /sbin/udevd)
[libguestfs.git]
/
daemon
/
glob.c
diff --git
a/daemon/glob.c
b/daemon/glob.c
index
e94e4aa
..
f2815ec
100644
(file)
--- a/
daemon/glob.c
+++ b/
daemon/glob.c
@@
-40,6
+40,10
@@
do_glob_expand (const char *pattern)
char **rv;
rv = malloc (sizeof (char *) * 1);
char **rv;
rv = malloc (sizeof (char *) * 1);
+ if (rv == NULL) {
+ reply_with_perror ("malloc");
+ return NULL;
+ }
rv[0] = NULL;
return rv; /* Caller frees. */
}
rv[0] = NULL;
return rv; /* Caller frees. */
}