mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-09-05 06:48:27 +00:00
[common] fixed improper comment parsing, fixes #233
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user