]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Rework virStorageAuthDefCopy
authorJohn Ferlan <jferlan@redhat.com>
Thu, 7 Feb 2019 22:21:31 +0000 (17:21 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit6fcc34408205d7f622fde2099b14235f08964df0
treeb13d30047bd3a26d9573ca4cad07c18b79648ef3
parenta98d9daf07c0f66a6f47078bcb2e00a4ec8df4a0
util: Rework virStorageAuthDefCopy

Rather than having an error path, let's rework the code to allocate
and fill into an @authdef 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/util/virstoragefile.c