Commit 386b43c6 authored by antirez's avatar antirez
Browse files

fpurge call removed from redis-cli

parent 3589e1a7
...@@ -441,11 +441,8 @@ static char *prompt(char *line, int size) { ...@@ -441,11 +441,8 @@ static char *prompt(char *line, int size) {
printf(">> "); printf(">> ");
retval = fgets(line, size, stdin); retval = fgets(line, size, stdin);
} while (retval && *line == '\n'); } while (retval && *line == '\n');
line[strlen(line) - 1] = '\0'; line[strlen(line) - 1] = '\0';
fpurge(stdin);
return retval; return retval;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment