From ae5325f0a9aea13025d3fa6e6229f0b27171bd8c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 31 Oct 2012 14:57:02 -0500 Subject: Guard against global_scope being NULL --- src/main.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main.cc') 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! } -- cgit v1.2.3