fix: replace strdup for release build

This commit is contained in:
kailixu 2024-03-25 21:34:31 +08:00
parent b9a8f94f14
commit e5abe34c84
1 changed files with 1 additions and 1 deletions

View File

@ -879,7 +879,7 @@ static int32_t sysTableGetGeomText(char* iGeom, int32_t nGeom, char** output, in
char* outputWKT = NULL;
if (nGeom == 0) {
if (!(*output = strdup(""))) code = TSDB_CODE_OUT_OF_MEMORY;
if (!(*output = taosStrdup(""))) code = TSDB_CODE_OUT_OF_MEMORY;
*nOutput = 0;
return code;
}