Ok, something is not allowed somewhere in C99

test-assert
Vitaliy Filippov 2021-11-24 11:28:10 +03:00
parent 6e0e172e15
commit 43f8ea47a0
1 changed files with 2 additions and 1 deletions

View File

@ -125,6 +125,7 @@ static void vitastor_parse_filename(const char *filename, QDict *options, Error
// The following are all key/value pairs
while (p)
{
int i;
char *name, *value;
name = qemu_vitastor_next_tok(p, '=', &p);
if (!p)
@ -132,7 +133,7 @@ static void vitastor_parse_filename(const char *filename, QDict *options, Error
error_setg(errp, "conf option %s has no value", name);
break;
}
for (int i = 0; i < strlen(name); i++)
for (i = 0; i < strlen(name); i++)
if (name[i] == '_')
name[i] = '-';
qemu_vitastor_unescape(name);