diff --git a/redis-cli.c b/redis-cli.c index e4ff59778..f8578832e 100644 --- a/redis-cli.c +++ b/redis-cli.c @@ -441,11 +441,8 @@ static char *prompt(char *line, int size) { printf(">> "); retval = fgets(line, size, stdin); } while (retval && *line == '\n'); - line[strlen(line) - 1] = '\0'; - fpurge(stdin); - return retval; }