diff options
author | krakjoe <joe.watkins@live.co.uk> | 2014-02-18 19:48:33 +0000 |
---|---|---|
committer | krakjoe <joe.watkins@live.co.uk> | 2014-02-18 19:48:33 +0000 |
commit | e392e730ea7cd006a9933cb088179c9a6a46d246 (patch) | |
tree | cb542085de81e2be28f8300065a844f03ded7089 /phpdbg_help.c | |
parent | 29e74ebf650dd11a0c83b980b21ee39ee5720ca6 (diff) | |
download | php-git-e392e730ea7cd006a9933cb088179c9a6a46d246.tar.gz |
execute new stack now
Diffstat (limited to 'phpdbg_help.c')
-rw-r--r-- | phpdbg_help.c | 6 |
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); |