mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
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:
parent
6050affb7f
commit
a609389310
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user