console_handler: do not call a NULL function pointer

The exit_handler can be NULL.
This commit is contained in:
moneromooo-monero 2015-07-18 10:53:20 +01:00
parent b87e066f02
commit e0278314d3
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -304,6 +304,7 @@ namespace epee
std::cout << usage; std::cout << usage;
} }
} }
if (exit_handler)
exit_handler(); exit_handler();
return true; return true;
CATCH_ENTRY_L0("console_handler", false); CATCH_ENTRY_L0("console_handler", false);