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

Commit3ac7d02

Browse files
committed
Don't try to translate NULL in GetConfigOptionByNum().
Noticed via -fsanitize=undefined. Introduced when a few columns inGetConfigOptionByNum() / pg_settings started to be translated in72be8c2 /PG 12.Backpatch to all affected branches, for the same reasons as46ab07f.Discussion:https://postgr.es/m/20220323173537.ll7klrglnp4gn2um@alap3.anarazel.deBackpatch: 12-
1 parent1c6bb38 commit3ac7d02

File tree

1 file changed

+1
-1
lines changed
  • src/backend/utils/misc

1 file changed

+1
-1
lines changed

‎src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9797,7 +9797,7 @@ GetConfigOptionByNum(int varnum, const char **values, bool *noshow)
97979797
values[4]=_(conf->short_desc);
97989798

97999799
/* extra_desc */
9800-
values[5]=_(conf->long_desc);
9800+
values[5]=conf->long_desc!=NULL ?_(conf->long_desc) :NULL;
98019801

98029802
/* context */
98039803
values[6]=GucContext_Names[conf->context];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp