diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-27 17:33:02 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2014-10-27 17:33:02 +0100 |
commit | d5dc3d0605f76fbbbad005d998497e53a236aeda (patch) | |
tree | 7cb25b9046481e7146800e555f39595d7db942c8 /iwinfo_utils.c | |
parent | c92728fbace8f539edbb393222bea6a4e8717075 (diff) | |
download | iwinfo-d5dc3d0605f76fbbbad005d998497e53a236aeda.tar.gz |
utils: only enable extended lookup if section looks like it
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'iwinfo_utils.c')
-rw-r--r-- | iwinfo_utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |