Fix buffer reference counts

This commit is contained in:
Kamil Trzcinski
2022-04-06 09:53:48 +02:00
parent 57b6e2a94c
commit 6218cd3020
9 changed files with 33 additions and 25 deletions

View File

@ -50,6 +50,9 @@ static int parse_opt(option_t *options, const char *key)
}
}
}
E_LOG_DEBUG(NULL, "Parsing '%s'. Got value='%s', and option='%s'", key, value, option ? option->name : NULL);
if (!option || !value) {
return -EINVAL;
}
@ -76,7 +79,7 @@ int parse_opts(option_t *options, int argc, char *argv[])
{
int arg;
for (arg = 1; arg < argc; arg += 2) {
for (arg = 1; arg < argc; arg++) {
const char *key = argv[arg];
if (key[0] == '-') {