tools/xl: fix uninitialized variable in xl_vdispl
PATCH v2 1/1 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 <[email protected]>
---
CC: Oleksandr Grytsov <[email protected]>
--- tools/xl/xl_vdispl.c | 1 + 1 file changed, 1 insertion(+)
tools/xl/xl_vdispl.c +1 -0
@@ -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
Quoted 4 lines · Doug Goldstein
The code added in
7a48622a78a0b452e8afa55b8442c958abd226a7could use rc uninitialized inmain_vdisplattach().Signed-off-by Doug Goldstein <[email protected]>
Acked-by Wei Liu <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel