From: Peter Krempa Date: Mon, 12 Apr 2021 16:18:49 +0000 (+0200) Subject: bhyve: Fix declaration of 'params' in 'bhyveParsePCIFbuf' X-Git-Tag: v7.3.0-rc1~240 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e9f304028b3893ec8544cb1ea6e8a44542265f;p=thirdparty%2Flibvirt.git 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 --- diff --git a/src/bhyve/bhyve_parse_command.c b/src/bhyve/bhyve_parse_command.c index d86d37b697..53b1cca704 100644 --- a/src/bhyve/bhyve_parse_command.c +++ b/src/bhyve/bhyve_parse_command.c @@ -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);