X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=ucw%2Fconf-intr.c;h=a5d323253a42a3eedc06e71f0f7b77622fdde358;hb=05ffab94be8da943cffb8fb30d7073ab78aef94c;hp=57192e9205e1ab58038ffb3fd8d648f709608a89;hpb=0ca8c151f5afe1680e98f3bfbe9d5c752d8a2924;p=libucw.git diff --git a/ucw/conf-intr.c b/ucw/conf-intr.c index 57192e92..a5d32325 100644 --- a/ucw/conf-intr.c +++ b/ucw/conf-intr.c @@ -635,7 +635,7 @@ cf_modify_item(struct cf_item *item, enum cf_operation op, int number, char **pa void cf_init_stack(struct cf_context *cc) { - if (!cc->initialized++) { + if (!cc->sections_initialized++) { cc->sections.flags |= SEC_FLAG_UNKNOWN; cc->sections.size = 0; // size of allocated array used to be stored here cf_init_section(NULL, &cc->sections, NULL, 0); @@ -652,11 +652,7 @@ cf_init_stack(struct cf_context *cc) } int -cf_check_stack(struct cf_context *cc) +cf_done_stack(struct cf_context *cc) { - if (cc->stack_level > 0) { - msg(L_ERROR, "Unterminated block"); - return 1; - } - return 0; + return (cc->stack_level > 0); }