summaryrefslogtreecommitdiff
path: root/ucimap.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-10-21 15:14:30 +0200
committerFelix Fietkau <nbd@openwrt.org>2011-10-21 15:17:06 +0200
commitd068b9f9d7adcc43264fb1931256536aa89a980d (patch)
tree830b6848826ea9c88065c2f76bab35daa672190c /ucimap.c
parent5077cdcee2b3b54e7e87596a98a77bac246bbaae (diff)
downloaduci-d068b9f9d7adcc43264fb1931256536aa89a980d.tar.gz
ucimap: initialize an uninitialized pointer (patch by Stanislav Fomichev)
Diffstat (limited to 'ucimap.c')
-rw-r--r--ucimap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ucimap.c b/ucimap.c
index 7af7f63..776a304 100644
--- a/ucimap.c
+++ b/ucimap.c
@@ -314,6 +314,7 @@ ucimap_add_fixup(struct ucimap_section_data *sd, union ucimap_data *data, struct
struct ucimap_fixup *f, tmp;
struct uci_map *map = sd->map;
+ tmp.next = NULL;
tmp.sm = om->data.sm;
tmp.name = str;
tmp.type = om->type;