提交 44922907 编写于 作者: weixin_48148422's avatar weixin_48148422

fix dead code

上级 747e9326
......@@ -200,20 +200,17 @@ void shellReadCommand(TAOS *con, char command[]) {
void *shellLoopQuery(void *arg) {
TAOS *con = (TAOS *)arg;
char *command = malloc(MAX_COMMAND_SIZE);
char command[MAX_COMMAND_SIZE];
while (1) {
memset(command, 0, MAX_COMMAND_SIZE);
shellPrintPrompt();
// Read command from shell.
char command[MAX_COMMAND_SIZE];
shellReadCommand(con, command);
// Run the command
if (command != NULL) {
shellRunCommand(con, command);
}
shellRunCommand(con, command);
}
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册