Skip to content

Commit 60769c6

Browse files
committed
Fix another warning, introduced by 8463110.
Discussion: https://postgr.es/m/3703896.1710799495@sss.pgh.pa.us Reported-by: Tom Lane
1 parent 8463110 commit 60769c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/utils/adt/pg_locale.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2505,13 +2505,13 @@ pg_strnxfrm_prefix(char *dest, size_t destsize, const char *src,
25052505
int
25062506
builtin_locale_encoding(const char *locale)
25072507
{
2508-
if (strcmp(locale, "C") == 0)
2509-
return -1;
2510-
else
2508+
if (strcmp(locale, "C") != 0)
25112509
ereport(ERROR,
25122510
(errcode(ERRCODE_WRONG_OBJECT_TYPE),
25132511
errmsg("invalid locale name \"%s\" for builtin provider",
25142512
locale)));
2513+
2514+
return -1;
25152515
}
25162516

25172517

0 commit comments

Comments
 (0)