mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-08-01 12:03:38 +00:00
[common] option: fix another invalid usage of an unset variable
This commit is contained in:
parent
0605b7df8c
commit
a29639fceb
2 changed files with 8 additions and 8 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
a12-197-g51ca08719e+1
|
||||
a12-198-g0605b7df8c+1
|
|
@ -297,6 +297,13 @@ bool option_parse(int argc, char * argv[])
|
|||
free(arg);
|
||||
}
|
||||
|
||||
if (!o)
|
||||
{
|
||||
DEBUG_WARN("Ignored unknown argument: %s", argv[a]);
|
||||
free(value);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!value)
|
||||
{
|
||||
if (o->type == OPTION_TYPE_BOOL)
|
||||
|
@ -311,13 +318,6 @@ bool option_parse(int argc, char * argv[])
|
|||
}
|
||||
}
|
||||
|
||||
if (!o)
|
||||
{
|
||||
DEBUG_WARN("Ignored unknown argument: %s", argv[a]);
|
||||
free(value);
|
||||
continue;
|
||||
}
|
||||
|
||||
option_set(o, value);
|
||||
free(value);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue