]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Rework virStoragePoolDefParseXML
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2019 23:41:58 +0000 (18:41 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit6bf74e3199bc144bde49d40aeb7e5bdbe95fd779
treec2fee5921eebfd198f113b11b32860a5f59448d5
parent1f20da92d838532f6a7639d84b292f788ea1391c
conf: Rework virStoragePoolDefParseXML

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: Ján Tomko <jtomko@redhat.com>
src/conf/storage_conf.c