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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy