utils: only enable extended lookup if section looks like it

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
This commit is contained in:
Jo-Philipp Wich 2014-10-27 17:33:02 +01:00
parent c92728fbac
commit d5dc3d0605

View file

@ -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;