diff options
author | John Wiegley <johnw@newartisans.com> | 2012-10-31 14:57:02 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-10-31 14:57:19 -0500 |
commit | ae5325f0a9aea13025d3fa6e6229f0b27171bd8c (patch) | |
tree | b8ec921598480be0c136424e5816c5ec1babcbd6 /src/main.cc | |
parent | 4d6564e29d51d04570aaaa8e758d1dc925516f55 (diff) | |
download | fork-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.cc | 3 |
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! } |