From e392e730ea7cd006a9933cb088179c9a6a46d246 Mon Sep 17 00:00:00 2001 From: krakjoe Date: Tue, 18 Feb 2014 19:48:33 +0000 Subject: execute new stack now --- phpdbg_help.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'phpdbg_help.c') 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); -- cgit v1.2.1