From d5dc3d0605f76fbbbad005d998497e53a236aeda Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 27 Oct 2014 17:33:02 +0100 Subject: [PATCH] utils: only enable extended lookup if section looks like it Signed-off-by: Jo-Philipp Wich --- iwinfo_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iwinfo_utils.c b/iwinfo_utils.c index 93de032..9654207 100644 --- a/iwinfo_utils.c +++ b/iwinfo_utils.c @@ -372,7 +372,7 @@ struct uci_section *iwinfo_uci_get_radio(const char *name, const char *type) struct uci_ptr ptr = { .package = "wireless", .section = name, - .flags = UCI_LOOKUP_EXTENDED, + .flags = (name && *name == '@') ? UCI_LOOKUP_EXTENDED : 0, }; const char *opt; -- 2.11.0