mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
Coverity: Ignore return value from guestfs_launch in virt-rescue.
We expect guestfs_launch to fail in this program.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user