Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62acbda

Browse files
committed
Fix potential coredump on bad locale value in pg_upgrade.
Thinko in error report (and a typo in the message text, too). We'refailing anyway, but it would be good to print something useful first.Noted while reviewing a patch to make pg_upgrade's locale code laxer.
1 parent3e71ce1 commit62acbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎contrib/pg_upgrade/check.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ get_canonical_locale_name(int category, const char *locale)
979979
res=setlocale(category,locale);
980980

981981
if (!res)
982-
pg_log(PG_FATAL,"failed to get systemlocal name for \"%s\"\n",res);
982+
pg_log(PG_FATAL,"failed to get systemlocale name for \"%s\"\n",locale);
983983

984984
res=pg_strdup(res);
985985

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp