]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
vshCommandStringGetArg: Drop @sz
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 7 Jan 2021 16:59:55 +0000 (17:59 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 26 Jan 2021 15:46:41 +0000 (16:46 +0100)
This variable is unused since introduction of the function in
v0.8.5~150.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/vsh.c

index badd37c08e7c9944ea38a659fa3f340dc865fa78..54253afa7220725282f3328ee2a9a30a8d40bfa7 100644 (file)
@@ -1608,7 +1608,6 @@ vshCommandStringGetArg(vshControl *ctl, vshCommandParser *parser, char **res,
 {
     bool single_quote = false;
     bool double_quote = false;
-    int sz = 0;
     char *p = parser->pos;
     char *q = g_strdup(p);
 
@@ -1662,7 +1661,6 @@ vshCommandStringGetArg(vshControl *ctl, vshCommandParser *parser, char **res,
         }
 
         *q++ = *p++;
-        sz++;
     }
     if (double_quote) {
         if (report)