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 <jferlan@redhat.com>
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This commit is contained in:
Marek Marczykowski-Górecki 2017-12-13 15:28:08 -05:00 committed by John Ferlan
parent 6050affb7f
commit a609389310

View File

@ -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: