mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 08:30:51 +00: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…
x
Reference in New Issue
Block a user