summaryrefslogtreecommitdiff
path: root/phpdbg_set.c
diff options
context:
space:
mode:
Diffstat (limited to 'phpdbg_set.c')
-rw-r--r--phpdbg_set.c4
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);
} /* }}} */