[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] tools/xl: fix uninitialized variable in xl_vdispl
On Tue, Mar 13, 2018 at 10:03 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote: >>> On 13.03.18 at 05:43, <cardoe@xxxxxxxxxx> wrote: Hi, Doug, Thanks for pointing it out. The implementation is done according to CODING_STYLE document (see ERROR HANDLING) which requests to define return value rc uninitialized. The only path where rc is uninitialized it is when dryrun_only set to true. So, proper fix should be: if (dryrun_only) { char *json = libxl_device_vdispl_to_json(ctx, &vdispl); printf("vdispl: %s\n", json); free(json); + rc = 0; goto out; } -- Best Regards,
Oleksandr Grytsov. _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |