summaryrefslogtreecommitdiff
path: root/src/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-10-31 14:57:02 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-10-31 14:57:19 -0500
commitae5325f0a9aea13025d3fa6e6229f0b27171bd8c (patch)
treeb8ec921598480be0c136424e5816c5ec1babcbd6 /src/main.cc
parent4d6564e29d51d04570aaaa8e758d1dc925516f55 (diff)
downloadfork-ledger-ae5325f0a9aea13025d3fa6e6229f0b27171bd8c.tar.gz
fork-ledger-ae5325f0a9aea13025d3fa6e6229f0b27171bd8c.tar.bz2
fork-ledger-ae5325f0a9aea13025d3fa6e6229f0b27171bd8c.zip
Guard against global_scope being NULL
Diffstat (limited to 'src/main.cc')
-rw-r--r--src/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index 124efb5e..a44506c9 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -214,7 +214,8 @@ int main(int argc, char * argv[], char * envp[])
} else
#endif
{
- global_scope->quick_close();
+ if (global_scope)
+ global_scope->quick_close();
INFO("Ledger ended"); // let global_scope leak!
}