]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:passdb: Make array of strings static
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 13 Feb 2024 00:40:29 +0000 (13:40 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 16 Feb 2024 02:41:36 +0000 (02:41 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/passdb/pdb_samba_dsdb.c

index d1c8ed2eeee4ac8b3c30f7682d48a031adbcf4ef..8060bd9fb94b718d76106f32d74075e78610ee30 100644 (file)
@@ -636,7 +636,7 @@ static NTSTATUS pdb_samba_dsdb_getsamupriv(struct pdb_samba_dsdb_state *state,
                                    TALLOC_CTX *mem_ctx,
                                    struct ldb_message **msg)
 {
-       const char * attrs[] = {
+       static const char * attrs[] = {
                "lastLogon", "lastLogoff", "pwdLastSet", "accountExpires",
                "sAMAccountName", "displayName", "homeDirectory",
                "homeDrive", "scriptPath", "profilePath", "description",