]> granicus.if.org Git - php/commitdiff
Fix segfault when cleaning without execution context
authorBob Weinand <bobwei9@hotmail.com>
Mon, 27 Oct 2014 10:01:43 +0000 (11:01 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 27 Oct 2014 10:01:43 +0000 (11:01 +0100)
phpdbg.c

index 02a9260eb971b225bd5ae59b590067122dd8a144..9c56b1d7bc9ddea099844a3cfef6902f9bf04dc0 100644 (file)
--- 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;