aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-18 10:53:20 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-07-18 10:53:49 +0100
commite0278314d347d83e28e8227fa3003a216ef35119 (patch)
tree3699fe006b98688513aa9837c92b7315f2a3b415 /contrib
parentconsole_handler: check for eof before trying to use input (diff)
downloadmonero-e0278314d347d83e28e8227fa3003a216ef35119.tar.xz
console_handler: do not call a NULL function pointer
The exit_handler can be NULL.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/epee/include/console_handler.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/console_handler.h b/contrib/epee/include/console_handler.h
index 8fe73ef40..5dd3eaba9 100644
--- a/contrib/epee/include/console_handler.h
+++ b/contrib/epee/include/console_handler.h
@@ -304,7 +304,8 @@ namespace epee
std::cout << usage;
}
}
- exit_handler();
+ if (exit_handler)
+ exit_handler();
return true;
CATCH_ENTRY_L0("console_handler", false);
}