From f107b5a34f5f20ff373683472cfa5978da640132 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Aug 2009 18:37:27 +0200 Subject: [PATCH] fix ucimap_set_changed --- ucimap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ucimap.c b/ucimap.c index c2d78f0..cb86a4f 100644 --- a/ucimap.c +++ b/ucimap.c @@ -388,13 +388,14 @@ ucimap_set_changed(void *section, void *field) struct uci_sectmap *sm = sd->sm; struct uci_optmap *om; int ofs = (char *)field - (char *)section; - int i; + int i = 0; ucimap_foreach_option(sm, om) { if (om->offset == ofs) { SET_BIT(sd->cmap, i); break; } + i++; } } -- 2.25.1