]> xenbits.xensource.com Git - libvirt.git/commitdiff
bhyve: Fix declaration of 'params' in 'bhyveParsePCIFbuf'
authorPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 16:18:49 +0000 (18:18 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 12 Apr 2021 17:13:46 +0000 (19:13 +0200)
In commit ad80bba90a3 I mistakenly didn't delete '**' from the
variable declaration when converting it to 'GStrv' and deleted the
'separator' variable since it was declared on the same line as a
different variable.

Fixes: ad80bba90a3
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/bhyve/bhyve_parse_command.c

index d86d37b697fad5853ac607f1409f3d13d4d32cc8..53b1cca704b71c7b0646a279dbe55a67de0c4bb3 100644 (file)
@@ -558,7 +558,7 @@ bhyveParsePCIFbuf(virDomainDefPtr def,
 
     virDomainVideoDefPtr video = NULL;
     virDomainGraphicsDefPtr graphics = NULL;
-    g_auto(GStrv) **params = NULL;
+    g_auto(GStrv) params = NULL;
     GStrv next;
 
     if (!(video = virDomainVideoDefNew(xmlopt)))
@@ -582,6 +582,7 @@ bhyveParsePCIFbuf(virDomainDefPtr def,
 
     for (next = params; *next; next++) {
         char *param = *next;
+        char *separator;
         if (!video->driver)
             video->driver = g_new0(virDomainVideoDriverDef, 1);