提交 386b43c6 编写于 作者: A antirez

fpurge call removed from redis-cli

上级 3589e1a7
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册