The code added in 7a48622a78a0b452e8afa55b8442c958abd226a7 could use rc
uninitialized in main_vdisplattach().

Signed-off-by: Doug Goldstein <car...@cardoe.com>
---
CC: Oleksandr Grytsov <oleksandr_gryt...@epam.com>
---
 tools/xl/xl_vdispl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/xl/xl_vdispl.c b/tools/xl/xl_vdispl.c
index 3cc99b6aed..e4ed572a0b 100644
--- a/tools/xl/xl_vdispl.c
+++ b/tools/xl/xl_vdispl.c
@@ -50,6 +50,7 @@ int main_vdisplattach(int argc, char **argv)
         char *json = libxl_device_vdispl_to_json(ctx, &vdispl);
         printf("vdispl: %s\n", json);
         free(json);
+        rc = 0;
         goto out;
     }
 
-- 
2.16.1


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to