1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-08 11:42:09 +03:00

Fix tolower loops to go in proper direction for cache.

This commit is contained in:
Bruce Momjian
1997-12-05 01:13:24 +00:00
parent 84fc5c4aed
commit 5a5cb30096
6 changed files with 12 additions and 12 deletions

View File

@ -28,7 +28,7 @@ case_translate_language_name(const char *input, char *output)
--------------------------------------------------------------------------*/
int i;
for (i = 0; i < NAMEDATALEN && input[i] != '\0'; ++i)
for (i = 0; i < NAMEDATALEN && input[i]; ++i)
output[i] = tolower(input[i]);
output[i] = '\0';