summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 02:43:09 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 02:43:09 -0400
commitc0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0 (patch)
treeaba0b84b79a3e8e8e3faf9e6728defdcc61b40c4 /main.cc
parentcd7d7e5b88d0cdca6b183c3b34cea2008136e0ec (diff)
downloadfork-ledger-c0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0.tar.gz
fork-ledger-c0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0.tar.bz2
fork-ledger-c0d7feac7f4af1b3535834f511e2e9ef2c2f7cb0.zip
don't allocate config_t within config.cc
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 4223b3ff..d8d54567 100644
--- a/main.cc
+++ b/main.cc
@@ -35,6 +35,11 @@ int main(int argc, char * argv[], char * envp[])
{
std::auto_ptr<journal_t> journal(new journal_t);
+ // Initialize the global configuration object for this run
+
+ std::auto_ptr<config_t> global_config(new config_t);
+ config = global_config.get();
+
// Parse command-line arguments
TIMER_START(process_args);