[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] tools/xl: fix uninitialized variable in xl_vdispl



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

Signed-off-by: Doug Goldstein <cardoe@xxxxxxxxxx>
---
CC: Oleksandr Grytsov <oleksandr_grytsov@xxxxxxxx>
---
 tools/xl/xl_vdispl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/xl/xl_vdispl.c b/tools/xl/xl_vdispl.c
index 3cc99b6aed..8fbad5be68 100644
--- a/tools/xl/xl_vdispl.c
+++ b/tools/xl/xl_vdispl.c
@@ -25,7 +25,7 @@
 int main_vdisplattach(int argc, char **argv)
 {
     int opt;
-    int rc;
+    int rc = ERROR_FAIL;
     uint32_t domid;
     libxl_device_vdispl vdispl;
 
-- 
2.16.1


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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.