mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
fpurge call removed from redis-cli
This commit is contained in:
parent
3589e1a7e5
commit
386b43c6b3
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user