summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Weinand <bobwei9@hotmail.com>2014-10-27 11:01:43 +0100
committerBob Weinand <bobwei9@hotmail.com>2014-10-27 11:01:43 +0100
commit9139d031d8877f061f7cefafefa41260017e9563 (patch)
treefdb016540f0dd435ee7d11c813f215e22f5eb0e9
parent5e8359d360c668b5ca4f5b5dbb62e65b6e033f2c (diff)
downloadphp-git-9139d031d8877f061f7cefafefa41260017e9563.tar.gz
Fix segfault when cleaning without execution context
-rw-r--r--phpdbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpdbg.c b/phpdbg.c
index 02a9260eb9..9c56b1d7bc 100644
--- a/phpdbg.c
+++ b/phpdbg.c
@@ -1466,7 +1466,7 @@ phpdbg_main:
if (exec) { /* set execution context */
PHPDBG_G(exec) = phpdbg_resolve_path(exec TSRMLS_CC);
- PHPDBG_G(exec_len) = strlen(PHPDBG_G(exec));
+ PHPDBG_G(exec_len) = strlen(exec);
free(exec);
exec = NULL;