]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/conf-section.c
Conf: Decoupled cf_stack_done() from committing
[libucw.git] / ucw / conf-section.c
index 4448ada6afc3da053582a031264d933d6c223862..c7bd32473be5c3bb8d686f5578ff8ab86d023045 100644 (file)
@@ -94,7 +94,7 @@ inspect_section(struct cf_section *sec)
 void
 cf_declare_section(const char *name, struct cf_section *sec, uns allow_unknown)
 {
-  struct cf_context *cc = cf_get_context();
+  struct cf_context *cc = cf_obtain_context();
   if (!cc->sections.cfg)
   {
     cc->sections.size = 50;