diff options
author | Felipe Pena <felipensp@gmail.com> | 2013-11-24 12:57:53 -0200 |
---|---|---|
committer | Felipe Pena <felipensp@gmail.com> | 2013-11-24 12:57:53 -0200 |
commit | c7ef093095fa1a8c139b53643b96b997643ee643 (patch) | |
tree | da3aa4bdfced89e2b81a10df5db1e87d0b33b744 /phpdbg_set.c | |
parent | 900bc9104ccbaa3ddea700afcdae643d68c90654 (diff) | |
download | php-git-c7ef093095fa1a8c139b53643b96b997643ee643.tar.gz |
- CS
Diffstat (limited to 'phpdbg_set.c')
-rw-r--r-- | phpdbg_set.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/phpdbg_set.c b/phpdbg_set.c index 41bc251502..3c923a018c 100644 --- a/phpdbg_set.c +++ b/phpdbg_set.c @@ -23,13 +23,13 @@ ZEND_EXTERN_MODULE_GLOBALS(phpdbg); -void phpdbg_set_prompt(const char* prompt TSRMLS_DC) /* {{{ */ +void phpdbg_set_prompt(const char *prompt TSRMLS_DC) /* {{{ */ { if (PHPDBG_G(prompt)) { efree(PHPDBG_G(prompt)); + PHPDBG_G(prompt) = NULL; } - PHPDBG_G(prompt) = NULL; spprintf(&PHPDBG_G(prompt), 0, "%s ", prompt); } /* }}} */ |