diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-08-23 16:34:06 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-08-23 16:34:06 +0100 |
commit | 9bab154d48e367702b65852c3c822341b474ffd2 (patch) | |
tree | fda156641c30707eb61900b9445aaf44df36f644 /rescue | |
parent | 4c76aaa391d591c5917a06b0277fb9eb7d6d790f (diff) | |
download | libguestfs-9bab154d48e367702b65852c3c822341b474ffd2.tar.gz libguestfs-9bab154d48e367702b65852c3c822341b474ffd2.tar.xz libguestfs-9bab154d48e367702b65852c3c822341b474ffd2.zip |
Coverity: Ignore return value from guestfs_launch in virt-rescue.
We expect guestfs_launch to fail in this program.
Diffstat (limited to 'rescue')
-rw-r--r-- | rescue/virt-rescue.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/rescue/virt-rescue.c b/rescue/virt-rescue.c index 911b80a1..dd033aa5 100644 --- a/rescue/virt-rescue.c +++ b/rescue/virt-rescue.c @@ -29,6 +29,7 @@ #include <assert.h> #include <libintl.h> +#include "ignore-value.h" #include "progname.h" #include "xvasprintf.h" @@ -289,7 +290,9 @@ main (int argc, char *argv[]) * appliance. */ guestfs_set_error_handler (g, NULL, NULL); - guestfs_launch (g); + + /* We expect launch to fail, so ignore the return value. */ + ignore_value (guestfs_launch (g)); /* launch() expects guestfsd to start. However, virt-rescue doesn't * run guestfsd, so this will always fail with ECHILD when the |