Merge pull request #29083 from taosdata/fix/internal
fix: compile errors
This commit is contained in:
commit
2241336f57
|
@ -87,8 +87,7 @@ int32_t taosSetSystemLocale(const char *inLocale) {
|
|||
return terrno;
|
||||
}
|
||||
|
||||
(void)memcpy(tsLocale, inLocale, strlen(inLocale) + 1);
|
||||
|
||||
tstrncpy(tsLocale, locale, TD_LOCALE_LEN);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -84,9 +84,8 @@ TEST(osEnvTests, osSufficient) {
|
|||
ret = osTempSpaceSufficient();
|
||||
EXPECT_EQ(ret, true);
|
||||
|
||||
osSetSystemLocale(NULL, NULL);
|
||||
osSetSystemLocale(NULL, NULL);
|
||||
osSetSystemLocale("1", "2");
|
||||
taosSetSystemLocale(NULL);
|
||||
taosSetSystemLocale("1");
|
||||
|
||||
osSetProcPath(1, NULL);
|
||||
osSetProcPath(0, (char **)&ret);
|
||||
|
|
Loading…
Reference in New Issue