Browse Source

ucimap: ignore unhandled data structure changes for now

Felix Fietkau 14 years ago
parent
commit
1afdbf8f22
1 changed files with 5 additions and 0 deletions
  1. 5 0
      ucimap.c

+ 5 - 0
ucimap.c

@@ -426,6 +426,9 @@ ucimap_store_section(struct uci_map *map, struct uci_package *p, void *section)
 		static char buf[32];
 		const char *str = NULL;
 
+		if (ucimap_is_list(om->type))
+			continue;
+
 		data = ucimap_get_data(sd, om);
 		if (!TEST_BIT(sd->cmap, i))
 			continue;
@@ -443,6 +446,8 @@ ucimap_store_section(struct uci_map *map, struct uci_package *p, void *section)
 			sprintf(buf, "%d", !!data->b);
 			str = buf;
 			break;
+		default:
+			continue;
 		}
 		ptr.value = str;