]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virfirewalld: fix g_variant_get call
authorPavel Hrdina <phrdina@redhat.com>
Mon, 21 Sep 2020 12:39:49 +0000 (14:39 +0200)
committerPavel Hrdina <phrdina@redhat.com>
Wed, 23 Sep 2020 10:53:11 +0000 (12:53 +0200)
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>
src/util/virfirewalld.c

index 69c8b73da00fa95bfe3450b70a28f924181f9661..12448f068127047bc02efdb2359a523f79a970dc 100644 (file)
@@ -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;