[modify for coverity scan]

This commit is contained in:
Hui Li 2020-06-24 10:36:32 +08:00
parent f74a895feb
commit 850b1fe3fa
1 changed files with 8 additions and 9 deletions

View File

@ -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() {
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();