diff options
author | Laine Stump <laine@laine.org> | 2011-08-10 23:34:07 -0400 |
---|---|---|
committer | Laine Stump <laine@laine.org> | 2012-03-09 04:53:10 -0500 |
commit | b5893b7b64d5f748ec36e52594328beb9bbef099 (patch) | |
tree | d08bfd543e1c279b789190f8ebd0834341a85978 /tests/cputestdata | |
parent | qemuxml2argvtest: Pass some additional flags to graphics-spice-agentmouse (diff) | |
download | libvirt-b5893b7b64d5f748ec36e52594328beb9bbef099.tar.gz libvirt-b5893b7b64d5f748ec36e52594328beb9bbef099.tar.bz2 libvirt-b5893b7b64d5f748ec36e52594328beb9bbef099.zip |
conf: eliminate redundant VIR_ALLOC of 1st element of network DNS hosts.
virNetworkDNSHostsDefParseXML was calling VIR_ALLOC(def->hosts) if
def->hosts was NULL. This is a waste of time, though, since
VIR_REALLOC_N is called a few lines further down, prior to any use of
def->hosts. (initializing def->nhosts to 0 is also redundant, because
the newly allocated memory will always be cleared to all 0's anyway).
Diffstat (limited to 'tests/cputestdata')
0 files changed, 0 insertions, 0 deletions