summaryrefslogtreecommitdiff
path: root/phpdbg_help.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_help.c')
-rw-r--r--phpdbg_help.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpdbg_help.c b/phpdbg_help.c
index 3aa82848e0..8dcc89007d 100644
--- a/phpdbg_help.c
+++ b/phpdbg_help.c
@@ -208,13 +208,13 @@ PHPDBG_COMMAND(help) /* {{{ */
phpdbg_command_t const *cmd;
int n;
- if (param->type == EMPTY_PARAM) {
+ if (!param || param->type == EMPTY_PARAM) {
pretty_print(get_help("overview!" TSRMLS_CC) TSRMLS_CC);
return SUCCESS;
}
- if (param->type == STR_PARAM) {
- n = get_command( param->str, param->len, &cmd, phpdbg_prompt_commands TSRMLS_CC);
+ if (param && param->type == STR_PARAM) {
+ n = get_command(param->str, param->len, &cmd, phpdbg_prompt_commands TSRMLS_CC);
if (n==1) {
summary_print(cmd TSRMLS_CC);