[common] fixed improper comment parsing, fixes #233
This commit is contained in:
1 parent
f9d919bdbb
commit
c7aa8871e4
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -382,6 +382,7 @@ bool option_load(const char * filename)
|
||||
{
|
||||
if (comment && c != '\n')
|
||||
continue;
|
||||
comment = false;
|
||||
|
||||
switch(c)
|
||||
{
|
||||
@@ -729,4 +730,4 @@ bool option_get_bool(const char * module, const char * name)
|
||||
}
|
||||
assert(o->type == OPTION_TYPE_BOOL);
|
||||
return o->value.x_bool;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user