mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
Fix unused variable in phpdbg_cmd.c (#12575)
This commit is contained in:
parent
4fa8e68c24
commit
cc8c24ab8f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue