- #define CFG_INPUT_SHIFT is used instead of a hardwired value
[sip-router] / cfg / cfg_struct.c
index fcb60f2..6c7498a 100644 (file)
@@ -412,7 +412,7 @@ int cfg_lookup_var(str *gname, str *vname,
                && (memcmp(g->name, gname->s, gname->len)==0)) {
 
                        for (   i = 0;
-                               i < g->size;
+                               i < g->num;
                                i++
                        ) {
                                if ((g->mapping[i].name_len == vname->len)