1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-29 23:43:17 +03:00

Remove a useless length check.

Author: Chao Li <lic@highgo.com>
Discussion: https://postgr.es/m/CAEoWx2mW0P8CByavV58zm3=eb2MQHaKOcDEF5B2UJYRyC2c3ig@mail.gmail.com
This commit is contained in:
Jeff Davis
2025-11-25 11:38:45 -08:00
parent 33bb3dc2d8
commit 3b9c118920

View File

@@ -434,9 +434,6 @@ strlower_libc_sb(char *dest, size_t destsize, const char *src, ssize_t srclen,
locale_t loc = locale->lt;
char *p;
if (srclen + 1 > destsize)
return srclen;
memcpy(dest, src, srclen);
dest[srclen] = '\0';