mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-06 08:58:35 +03:00
virfirewalld: fix g_variant_get call
We need to pass pointer to `array`. Reported-by: Ján Tomko <jtomko@redhat.com> Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com> Tested-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
0ac453e493
commit
7d4b04087c
@ -215,7 +215,7 @@ virFirewallDGetZones(char ***zones, size_t *nzones)
|
||||
NULL) < 0)
|
||||
return -1;
|
||||
|
||||
g_variant_get(reply, "(@as)", array);
|
||||
g_variant_get(reply, "(@as)", &array);
|
||||
*zones = g_variant_dup_strv(array, nzones);
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user