From 88e9f304028b3893ec8544cb1ea6e8a44542265f Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Mon, 12 Apr 2021 18:18:49 +0200 Subject: [PATCH] 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 --- src/bhyve/bhyve_parse_command.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);