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

Commit4892047

Browse files
committed
Remove last NULL element in config_group_names[]
This has not been needed since9d77708 where there was a loop toprint all the possible GUC groups, relying on the last element to beNULL.Author: Japin LiReviewed-By: Jelte Fennema-NioDiscussion:https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com
1 parent413c184 commit4892047

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,11 +715,9 @@ const char *const config_group_names[] =
715715
[PRESET_OPTIONS]=gettext_noop("Preset Options"),
716716
[CUSTOM_OPTIONS]=gettext_noop("Customized Options"),
717717
[DEVELOPER_OPTIONS]=gettext_noop("Developer Options"),
718-
/* help_config wants this array to be null-terminated */
719-
NULL
720718
};
721719

722-
StaticAssertDecl(lengthof(config_group_names)== (DEVELOPER_OPTIONS+2),
720+
StaticAssertDecl(lengthof(config_group_names)== (DEVELOPER_OPTIONS+1),
723721
"array length mismatch");
724722

725723
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp