From cc8c24ab8f6dd178ade69966f79ac6bea86d2c9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Tue, 31 Oct 2023 08:28:16 +0100 Subject: [PATCH] Fix unused variable in phpdbg_cmd.c (#12575) --- sapi/phpdbg/phpdbg_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sapi/phpdbg/phpdbg_cmd.c b/sapi/phpdbg/phpdbg_cmd.c index f5701384d3a..503b3c80276 100644 --- a/sapi/phpdbg/phpdbg_cmd.c +++ b/sapi/phpdbg/phpdbg_cmd.c @@ -740,7 +740,6 @@ PHPDBG_API int phpdbg_stack_execute(phpdbg_param_t *stack, bool allow_async_unsa PHPDBG_API char *phpdbg_read_input(const char *buffered) /* {{{ */ { - char buf[PHPDBG_MAX_CMD]; char *buffer = NULL; if ((PHPDBG_G(flags) & (PHPDBG_IS_STOPPING | PHPDBG_IS_RUNNING)) != PHPDBG_IS_STOPPING) { @@ -758,6 +757,7 @@ PHPDBG_API char *phpdbg_read_input(const char *buffered) /* {{{ */ buffer = estrdup(cmd); free(cmd); #else + char buf[PHPDBG_MAX_CMD]; phpdbg_write("%s", phpdbg_get_prompt()); phpdbg_consume_stdin_line(buf); buffer = estrdup(buf);