git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Coverity: Check return value of sysroot_path.
[libguestfs.git]
/
daemon
/
mount.c
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
ccace75
..
1238ad2
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-349,7
+349,7
@@
do_mount_loop (const char *file, const char *mountpoint)
}
buf = sysroot_path (file);
- if (!
file
) {
+ if (!
buf
) {
reply_with_perror ("malloc");
free (mp);
return -1;