From 247e92937c8d7f08e68b65dd8dc1229738c66297 Mon Sep 17 00:00:00 2001 From: Geoffrey McRae Date: Thu, 9 May 2019 22:47:48 +1000 Subject: [PATCH] [common] match the correct option --- VERSION | 2 +- common/src/option.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 07ef544a..6feb33b2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -a12-163-ge7345b9711+1 \ No newline at end of file +a12-164-g63314941f6+1 \ No newline at end of file diff --git a/common/src/option.c b/common/src/option.c index ee4c40f4..9a266db2 100644 --- a/common/src/option.c +++ b/common/src/option.c @@ -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;