未验证 提交 cbb0dd72 编写于 作者: S slguan 提交者: GitHub

Merge pull request #1072 from taosdata/feature/fangdoc

return if fail to open file, otherwise coredump
......@@ -351,6 +351,11 @@ int main(int argc, char *argv[]) {
}
FILE *fp = fopen(arguments.output_file, "a");
if (NULL == fp) {
fprintf(stderr, "Failed to open %s for writing\n", arguments.output_file);
return 1;
};
time_t tTime = time(NULL);
struct tm tm = *localtime(&tTime);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册