- // We need to create an empty pool
- cf_journal_commit_transaction(1, cf_journal_new_transaction(1));
+ // We need to create an empty pool and initialize all configuration items
+ struct cf_journal_item *oldj = cf_journal_new_transaction(1);
+ cf_init_stack();
+ done_stack();
+ cf_journal_commit_transaction(1, oldj);