mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-07-29 18:43:38 +00:00
[common] option: fix crash on failure to parse invalid config file
This commit is contained in:
parent
7cc0f7cb99
commit
ce9b94e93d
2 changed files with 8 additions and 1 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
|||
a12-194-g06c229dfd4+1
|
||||
a12-195-g7cc0f7cb99+1
|
|
@ -415,6 +415,13 @@ bool option_load(const char * filename)
|
|||
case '\n':
|
||||
if (name)
|
||||
{
|
||||
if (!module)
|
||||
{
|
||||
DEBUG_ERROR("Syntax error on line %d, module not specified for option", lineno);
|
||||
result = false;
|
||||
goto exit;
|
||||
}
|
||||
|
||||
struct Option * o = option_get(module, name);
|
||||
if (!o)
|
||||
DEBUG_WARN("Ignored unknown option %s:%s", module, name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue