mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-24 04:12:20 +00:00
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:
parent
0fa141376c
commit
88e9f30402
@ -558,7 +558,7 @@ bhyveParsePCIFbuf(virDomainDefPtr def,
|
|||||||
|
|
||||||
virDomainVideoDefPtr video = NULL;
|
virDomainVideoDefPtr video = NULL;
|
||||||
virDomainGraphicsDefPtr graphics = NULL;
|
virDomainGraphicsDefPtr graphics = NULL;
|
||||||
g_auto(GStrv) **params = NULL;
|
g_auto(GStrv) params = NULL;
|
||||||
GStrv next;
|
GStrv next;
|
||||||
|
|
||||||
if (!(video = virDomainVideoDefNew(xmlopt)))
|
if (!(video = virDomainVideoDefNew(xmlopt)))
|
||||||
@ -582,6 +582,7 @@ bhyveParsePCIFbuf(virDomainDefPtr def,
|
|||||||
|
|
||||||
for (next = params; *next; next++) {
|
for (next = params; *next; next++) {
|
||||||
char *param = *next;
|
char *param = *next;
|
||||||
|
char *separator;
|
||||||
if (!video->driver)
|
if (!video->driver)
|
||||||
video->driver = g_new0(virDomainVideoDriverDef, 1);
|
video->driver = g_new0(virDomainVideoDriverDef, 1);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user