]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMonitorJSONExtractPRManagerInfo: Declare @entry inside the loop
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 22 Oct 2021 05:44:03 +0000 (07:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 25 Oct 2021 11:42:39 +0000 (13:42 +0200)
commit40bbcb47cc734b9e75fd346cb5c5409a0ab63a14
tree847635e9c3fcdfb9c220c5581f04ced5d1e4d21e
parent3e27dbc0297cb1b43e5da7cbb434d502c0975bc7
qemuMonitorJSONExtractPRManagerInfo: Declare @entry inside the loop

The reason why @entry variable in qemuMonitorJSONExtractPRManagerInfo()
was declared at the top most level was that the variable is used under
the cleanup label.  However, if declared using g_autofree then the
variable can be declared inside the loop it is used in.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Tim Wiederhake <twiederh@redhat.com>
src/qemu/qemu_monitor_json.c