[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] libxl: Fix not initialized variable
# HG changeset patch # User Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx> # Date 1361668098 -3600 # Node ID 9f7e5ef02139a2e1844e39844f1230c5ee899cc8 # Parent 9f12bdd6b7f00e421f963775a80429c0f0c1740a libxl: Fix not initialized variable It is used for result domid from libxl__domain_make, but actually this function have assert on an initial value. This patch is intended for xen-4.1 only - 4.2 and later have reworked this part of code already containing the fix. Signed-off-by: Marek Marczykowski <marmarek@xxxxxxxxxxxxxxxxxxxxxx> diff --git a/tools/libxl/libxl_dm.c b/tools/libxl/libxl_dm.c --- a/tools/libxl/libxl_dm.c +++ b/tools/libxl/libxl_dm.c @@ -458,7 +458,7 @@ static int libxl_create_stubdom(libxl_ct libxl_domain_create_info c_info; libxl_domain_build_info b_info; libxl_domain_build_state state; - uint32_t domid; + uint32_t domid = 0; char **args; struct xs_permissions perm[2]; xs_transaction_t t; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |