diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-04-16 20:55:02 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-04-16 20:55:02 +0200 |
commit | 2ab2b74af3344f076248c5c5574c7b814a2b44fc (patch) | |
tree | d8489f35b91edd42dcff0b07e01d40e7bcbb17a8 /phpdbg_prompt.c | |
parent | b1a22ae6dc2b9d530b385661d56d62ae584a1016 (diff) | |
download | php-git-2ab2b74af3344f076248c5c5574c7b814a2b44fc.tar.gz |
Also check for length to not segfault
Diffstat (limited to 'phpdbg_prompt.c')
-rw-r--r-- | phpdbg_prompt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 86fc4d718e..da06c71aff 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -645,7 +645,7 @@ PHPDBG_COMMAND(run) /* {{{ */ /* reset hit counters */ phpdbg_reset_breakpoints(TSRMLS_C); - if (param && param->type != EMPTY_PARAM) { + if (param && param->type != EMPTY_PARAM && param->len != 0) { char **argv = emalloc(5 * sizeof(char *)); int argc = 0; int i; |