Skip to content

Commit 4892047

Browse files
committed
Remove last NULL element in config_group_names[]
This has not been needed since 9d77708 where there was a loop to print all the possible GUC groups, relying on the last element to be NULL. Author: Japin Li Reviewed-By: Jelte Fennema-Nio Discussion: https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com
1 parent 413c184 commit 4892047

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/backend/utils/misc/guc_tables.c

+1-3
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)