From 1afdbf8f22ab7f8c9cf4d52d897e3b0de1e099e3 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Aug 2009 18:39:21 +0200 Subject: [PATCH 1/1] ucimap: ignore unhandled data structure changes for now --- ucimap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ucimap.c b/ucimap.c index cb86a4f..e942333 100644 --- a/ucimap.c +++ b/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; -- 2.11.0