]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: convert final DIR* to g_autoptr
authorLaine Stump <laine@redhat.com>
Mon, 26 Oct 2020 02:40:40 +0000 (22:40 -0400)
committerLaine Stump <laine@redhat.com>
Tue, 3 Nov 2020 03:01:36 +0000 (22:01 -0500)
commite98f21671927f3f75f6ee4281bf03cb0c743116a
tree48937d6e9a03770b8bc845157e50e80c3c5594aa
parentc0ae4919e386cda6e21d3ba022ee187e8b09793b
conf: convert final DIR* to g_autoptr

This use of DIR* was re-using the same function-scope DIR* each time
through a for loop, and due to multiple error gotos in the loop, it
needed to have the scope of the DIR* reduced to just the loop at the
same time as switching to g_autoptr. That's what this patch does.

Signed-off-by: Laine Stump <laine@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
src/conf/capabilities.c