提交 850b1fe3 编写于 作者: H Hui Li

[modify for coverity scan]

上级 f74a895f
...@@ -170,7 +170,6 @@ static void taosGetSystemTimezone() { ...@@ -170,7 +170,6 @@ static void taosGetSystemTimezone() {
} }
fclose(f); fclose(f);
}
char *lineEnd = strstr(buf, "\n"); char *lineEnd = strstr(buf, "\n");
if (lineEnd != NULL) { if (lineEnd != NULL) {
...@@ -181,7 +180,7 @@ static void taosGetSystemTimezone() { ...@@ -181,7 +180,7 @@ static void taosGetSystemTimezone() {
if (strlen(buf) > 0) { if (strlen(buf) > 0) {
setenv("TZ", buf, 1); setenv("TZ", buf, 1);
} }
}
// get and set default timezone // get and set default timezone
tzset(); tzset();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册