libxl/dm_depriv: Fix build
authorGeorge Dunlap <george.dunlap@citrix.com>
Fri, 21 Dec 2018 19:35:04 +0000 (19:35 +0000)
committerGeorge Dunlap <george.dunlap@citrix.com>
Fri, 21 Dec 2018 19:35:04 +0000 (19:35 +0000)
Build tests noticed a path where we weren't setting rc.

Signed-off-by: George Dunlap <george.dunlap@citrix.com>
tools/libxl/libxl_dm.c

index f5322e3f450a30118ec4df3547b9093616d33a69..4b97936bd5930b89183584933465c0b3313bd4b3 100644 (file)
@@ -177,6 +177,7 @@ static int libxl__domain_get_device_model_uid(libxl__gc *gc,
         LOGD(DEBUG, guest_domid,
              "dm_restrict disabled, starting QEMU as root");
         user = NULL; /* Should already be null, but just in case */
+        rc = 0;
         goto out;
     }