This is an automated email from the ASF dual-hosted git repository. markt-asf pushed a commit to branch 1.3.x in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
commit c7ca9704552ea46f2daa04bc07a638125c45f312 Author: Mark Thomas <[email protected]> AuthorDate: Tue Sep 1 16:15:19 2026 +0100 Fix warning --- native/os/unix/system.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/native/os/unix/system.c b/native/os/unix/system.c index c32d342d8..d3ab8c9b4 100644 --- a/native/os/unix/system.c +++ b/native/os/unix/system.c @@ -434,7 +434,10 @@ TCN_IMPLEMENT_CALL(void, OS, syslog)(TCN_STDARGS, jint level, id = LOG_INFO; break; } - syslog (id, "%s", J2S(msg)); + + if (J2S(msg) != NULL) { + syslog (id, "%s", J2S(msg)); + } TCN_FREE_CSTRING(msg); } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
