git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fab0de0
)
Coverity: Check return value of sysroot_path.
author
Richard W.M. Jones
<rjones@redhat.com>
Wed, 8 Jun 2011 21:14:21 +0000
(22:14 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Mon, 13 Jun 2011 13:22:04 +0000
(14:22 +0100)
For some reason we were checking the parameter!
(cherry picked from commit
7fae594df719d1d81a043c4d0280b359f750facb
)
daemon/mount.c
patch
|
blob
|
history
diff --git
a/daemon/mount.c
b/daemon/mount.c
index
a379d39
..
098283a
100644
(file)
--- a/
daemon/mount.c
+++ b/
daemon/mount.c
@@
-352,7
+352,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;