mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-05-12 09:31:14 +00:00
[common] match the correct option
This commit is contained in:
parent
63314941f6
commit
247e92937c
@ -233,7 +233,7 @@ struct OptionValue * option_get(const char * module, const char * name)
|
|||||||
for(int i = 0; i < state.oCount; ++i)
|
for(int i = 0; i < state.oCount; ++i)
|
||||||
{
|
{
|
||||||
struct Option * o = &state.options[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 &o->value;
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user