fpurge call removed from redis-cli

This commit is contained in:
antirez 2010-03-03 20:08:16 +01:00
parent 3589e1a7e5
commit 386b43c6b3

View File

@ -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;
}