mirror of https://gitee.com/openkylin/libvirt.git
bhyve: Fix declaration of 'params' in 'bhyveParsePCIFbuf'
In commitad80bba90a
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:ad80bba90a
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;
|
||||
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue