提交 8b173c78 编写于 作者: Y Yanyan Jiang 提交者: Zihao Yu

fix ctrl-d crash bug

上级 5752ba91
......@@ -82,8 +82,7 @@ void ui_mainloop(int is_batch_mode) {
return;
}
while (1) {
char *str = rl_gets();
for (char *str; (str = rl_gets()) != NULL; ) {
char *str_end = str + strlen(str);
/* extract the first token as the command */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册