bhyve: Fix declaration of 'params' in 'bhyveParsePCIFbuf'

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>
This commit is contained in:
Peter Krempa 2021-04-12 18:18:49 +02:00
parent 0fa141376c
commit 88e9f30402

View 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);