mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-13 01:38:20 +00:00
[common] fixed improper comment parsing, fixes #233
This commit is contained in:
parent
f9d919bdbb
commit
c7aa8871e4
@ -382,6 +382,7 @@ bool option_load(const char * filename)
|
|||||||
{
|
{
|
||||||
if (comment && c != '\n')
|
if (comment && c != '\n')
|
||||||
continue;
|
continue;
|
||||||
|
comment = false;
|
||||||
|
|
||||||
switch(c)
|
switch(c)
|
||||||
{
|
{
|
||||||
@ -729,4 +730,4 @@ bool option_get_bool(const char * module, const char * name)
|
|||||||
}
|
}
|
||||||
assert(o->type == OPTION_TYPE_BOOL);
|
assert(o->type == OPTION_TYPE_BOOL);
|
||||||
return o->value.x_bool;
|
return o->value.x_bool;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user