fix `uci import` with not yet existing packages
[project/uci.git] / parse.c
diff --git a/parse.c b/parse.c
index 3bea3e4..63095b5 100644 (file)
--- 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 <string.h>
@@ -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 */