From: Felipe Pena Date: Sun, 10 Nov 2013 18:10:23 +0000 (-0200) Subject: - Fix code X-Git-Tag: php-5.6.0alpha1~110^2~518^2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7d43677b1f87567d334562cb8bc04c998d63cd94;p=php - Fix code --- diff --git a/phpdbg_prompt.c b/phpdbg_prompt.c index 5e795b624b..02bb377af5 100644 --- a/phpdbg_prompt.c +++ b/phpdbg_prompt.c @@ -301,7 +301,7 @@ int phpdbg_interactive(int argc, char **argv TSRMLS_DC) /* {{{ */ fgets(cmd, PHPDBG_MAX_CMD, stdin) != NULL) { size_t cmd_len = strlen(cmd) - 1; - while (cmd[cmd_len] == '\n') { + if (cmd[cmd_len] == '\n') { cmd[cmd_len] = 0; }