Skip to contentSkip to conversation

tools/xl: fix uninitialized variable in xl_vdispl

PATCH In review Doug Goldstein 2 participants 2 messages Mar 13, 2018

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 tools/xl: fix uninitialized variable in xl_vdispl

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

---
CC: Oleksandr Grytsov <[email protected]>

---
 tools/xl/xl_vdispl.c | 1 +
 1 file changed, 1 insertion(+)
tools/xl/xl_vdispl.c +1 -0
index 3cc99b6aed..e4ed572a0b 100644
@@ -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;
     }
 
Signature · 7 lines
2.16.1


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel