diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 13:27:20 +0100 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2014-10-28 13:27:20 +0100 |
commit | 24a88e39065dd7e80c3a9f2c18d0d878af36cbe8 (patch) | |
tree | 6243b59ca45fe26b33f9d7e9b5132d5e0ea6e700 /phpdbg.c | |
parent | 2b3ea0a2bdcd4f758c27f9ad95260d55b6a154c3 (diff) | |
download | php-git-24a88e39065dd7e80c3a9f2c18d0d878af36cbe8.tar.gz |
Fix wrong exec length on relative paths
Diffstat (limited to 'phpdbg.c')
-rw-r--r-- | phpdbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(exec); + PHPDBG_G(exec_len) = PHPDBG_G(exec) ? strlen(PHPDBG_G(exec)) : 0; free(exec); exec = NULL; |