git: b338e0909672 - stable/15 - MAC/do: Constify is_null_or_empty()

From: Olivier Certner <olce_at_FreeBSD.org>
Date: Mon, 29 Jun 2026 19:25:54 UTC
The branch stable/15 has been updated by olce:

URL: https://cgit.FreeBSD.org/src/commit/?id=b338e0909672ea6155ce4f4deeeeaa91a5eec157

commit b338e0909672ea6155ce4f4deeeeaa91a5eec157
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2026-05-20 11:12:38 +0000
Commit:     Olivier Certner <olce@FreeBSD.org>
CommitDate: 2026-06-29 19:23:49 +0000

    MAC/do: Constify is_null_or_empty()
    
    Reviewed by:    bapt
    MFC after:      1 month
    Sponsored by:   The FreeBSD Foundation
    Pull Request:   https://ron-dev.freebsd.org/FreeBSD/src/pulls/38
    
    (cherry picked from commit 37bc08d5fe9933f41574bf477080d729daf19928)
---
 sys/security/mac_do/mac_do.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/security/mac_do/mac_do.c b/sys/security/mac_do/mac_do.c
index 32950237d33c..9a316e4cd6e7 100644
--- a/sys/security/mac_do/mac_do.c
+++ b/sys/security/mac_do/mac_do.c
@@ -399,7 +399,7 @@ new_conf(void)
 }
 
 static bool
-is_null_or_empty(const char *s)
+is_null_or_empty(const char *const s)
 {
 	return (s == NULL || s[0] == '\0');
 }