Browse Source

ucimap: initialize an uninitialized pointer (patch by Stanislav Fomichev)

Felix Fietkau 12 years ago
parent
commit
d068b9f9d7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ucimap.c

+ 1 - 0
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;