This commit is contained in:
Hui Li 2020-06-29 19:40:06 +08:00
parent ebf8d765d3
commit 700acfbe85
1 changed files with 1 additions and 1 deletions

View File

@ -839,7 +839,7 @@ void source_file(TAOS *con, char *fptr) {
memcpy(cmd + cmd_len, line, read_len);
printf("%s%s\n", PROMPT_HEADER, cmd);
shellRunCommand(con, cmd);
memset(cmd, 0, MAX_COMMAND_SIZE);
memset(cmd, 0, tsMaxSQLStringLen);
cmd_len = 0;
}