]> xenbits.xensource.com Git - libvirt.git/commitdiff
xenconfig: Remove unnecessary variable clear in xenMakeIPList
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Wed, 13 Dec 2017 20:28:08 +0000 (15:28 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 13 Dec 2017 20:31:51 +0000 (15:31 -0500)
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>
src/xenconfig/xen_common.c

index ff0df5fb7fa5c37885565be74327d24223e279ac..9777d23475443503256f7c28f011e6ec97542279 100644 (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: