]> mj.ucw.cz Git - libucw.git/blobdiff - lib/conf.c
Added generic functions for IP address access lists.
[libucw.git] / lib / conf.c
index 9e52cf275a12db022e231e41a48eb976841824c5..3f79fc22d3497d4c15c9de0dc524ac7f762ebf20 100644 (file)
@@ -60,7 +60,7 @@ int cf_item_count(void)
        struct cfitem *sect, *item;
        int count = 0;
        for (sect = cfsection; sect; sect = sect->var)
-               for (item = sect+1; sect->type; sect++)
+               for (item = sect+1; item->type; item++)
                        count++;
        return count;
 }