X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=parse.c;h=63095b507d147f92e07523d6590e606c0304b9e3;hp=3bea3e4707c719ff2b4b59d267e8ec1325d2385c;hb=3b3d63e234978e76a901b7968955a3f2e7e855d4;hpb=352572f18e30295cab3d260efd5c5455026443fa diff --git a/parse.c b/parse.c index 3bea3e4..63095b5 100644 --- a/parse.c +++ b/parse.c @@ -9,7 +9,7 @@ * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * GNU Lesser General Public License for more details. */ #include @@ -35,7 +35,7 @@ void uci_parse_section(struct uci_section *s, const struct uci_parse_option *opt if (strcmp(opts[i].name, o->e.name) != 0) continue; - if (opts[i].type >= 0 && opts[i].type != o->type) + if (opts[i].type != o->type) continue; /* match found */