]> xenbits.xensource.com Git - libvirt.git/commit
conf: Rework virStorageVolDefParseXML
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2019 22:43:27 +0000 (17:43 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commitd04fbe7dab545f7b3b5fcfafa594d045489f28c9
treefd91c648927854d632c9b9417651dd9c0ff7c935
parente687538d3a29551738d39fa9bf0a51e7a6d6688d
conf: Rework virStorageVolDefParseXML

Rather than having an error path, let's rework the code to allocate
and fill into an @def variable and then steal that into @ret when we
are successful leaving just a cleanup: path.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/storage_conf.c