未验证 提交 b3f41997 编写于 作者: H hzcheng 提交者: GitHub

Merge pull request #343 from localvar/fix-dead-code

fix dead code
......@@ -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.
先完成此消息的编辑!
想要评论请 注册