[TD-6356]<fix>: Fix the crash in TS-187

This commit is contained in:
Ganlin Zhao 2021-08-26 16:58:42 +08:00
parent 07b5c9c94b
commit 9b06217571
1 changed files with 1 additions and 2 deletions

View File

@ -227,8 +227,7 @@ char* strntolower_s(char *dst, const char *src, int32_t n) {
assert(dst != NULL);
if (n == 0) {
*p = 0;
return dst;
return NULL;
}
while (n-- > 0) {