From: Marek Marczykowski-Górecki Date: Wed, 13 Dec 2017 20:28:08 +0000 (-0500) Subject: xenconfig: Remove unnecessary variable clear in xenMakeIPList X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a609389310946dc3c90a6f1fff73c9ac6b27b84e;p=libvirt.git xenconfig: Remove unnecessary variable clear in xenMakeIPList Remove the unnecessary clearing of address_array as VIR_ALLOC_N initialized the array already. Cc: John Ferlan Signed-off-by: Marek Marczykowski-Górecki --- diff --git a/src/xenconfig/xen_common.c b/src/xenconfig/xen_common.c index ff0df5fb7f..9777d23475 100644 --- a/src/xenconfig/xen_common.c +++ b/src/xenconfig/xen_common.c @@ -1191,8 +1191,6 @@ xenMakeIPList(virNetDevIPInfoPtr guestIP) if (!address_array[i]) goto cleanup; } - address_array[guestIP->nips] = NULL; - ret = virStringListJoin((const char**)address_array, " "); cleanup: