[TD-3197]<fix>: taosdemo and taosdump coverity scan issues. (#6207)

Co-authored-by: Shuduo Sang <sdsang@taosdata.com>
This commit is contained in:
Shuduo Sang 2021-05-24 11:27:11 +08:00 committed by GitHub
parent 5f552855a1
commit 94d45c3976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 12 deletions

View File

@ -1123,12 +1123,12 @@ static void appendResultBufToFile(char *resultBuf, char *resultFile)
__func__, __LINE__, resultFile);
return;
}
}
fprintf(fp, "%s", resultBuf);
tmfclose(fp);
}
}
static void appendResultToFile(TAOS_RES *res, char* resultFile) {
TAOS_ROW row = NULL;
int num_rows = 0;