[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH v2] 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 | 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@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |