[common] match the correct option

This commit is contained in:
Geoffrey McRae 2019-05-09 22:47:48 +10:00
parent 63314941f6
commit 247e92937c
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
a12-163-ge7345b9711+1
a12-164-g63314941f6+1

View File

@ -233,7 +233,7 @@ struct OptionValue * option_get(const char * module, const char * name)
for(int i = 0; i < state.oCount; ++i)
{
struct Option * o = &state.options[i];
if ((strcmp(o->module, module) == 0) || (strcmp(o->name, name) == 0))
if ((strcmp(o->module, module) == 0) && (strcmp(o->name, name) == 0))
return &o->value;
}
return NULL;