Remove last NULL element in config_group_names[]
authorMichael Paquier <michael@paquier.xyz>
Wed, 28 Feb 2024 03:51:35 +0000 (12:51 +0900)
committerMichael Paquier <michael@paquier.xyz>
Wed, 28 Feb 2024 03:51:35 +0000 (12:51 +0900)
This has not been needed since 9d77708d83ee 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

src/backend/utils/misc/guc_tables.c

index a63ea042edf0aa90b42a57f4189f113cda45413d..f5dcb5503a65250a4b11cf9da16824a4ec49b171 100644 (file)
@@ -715,11 +715,9 @@ const char *const config_group_names[] =
    [PRESET_OPTIONS] = gettext_noop("Preset Options"),
    [CUSTOM_OPTIONS] = gettext_noop("Customized Options"),
    [DEVELOPER_OPTIONS] = gettext_noop("Developer Options"),
-   /* help_config wants this array to be null-terminated */
-   NULL
 };
 
-StaticAssertDecl(lengthof(config_group_names) == (DEVELOPER_OPTIONS + 2),
+StaticAssertDecl(lengthof(config_group_names) == (DEVELOPER_OPTIONS + 1),
                 "array length mismatch");
 
 /*