]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-dsdb: Make array static
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 22 Dec 2022 04:15:56 +0000 (17:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 3 Mar 2023 01:07:36 +0000 (01:07 +0000)
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/common/util_groups.c

index bb56129e671b292d4464a75201cf7e8eadbbce2b..239e6952d2a3fa62824d8b9751353c2fae0f5b30 100644 (file)
@@ -66,7 +66,7 @@ NTSTATUS dsdb_expand_nested_groups(struct ldb_context *sam_ctx,
                                   TALLOC_CTX *res_sids_ctx, struct auth_SidAttr **res_sids,
                                   uint32_t *num_res_sids)
 {
-       const char * const attrs[] = { "groupType", "memberOf", NULL };
+       static const char * const attrs[] = { "groupType", "memberOf", NULL };
        unsigned int i;
        int ret;
        struct ldb_dn *dn;