From f7e1a9324afe42905ade577332f35c99a0af6aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20H=C3=A4rer?= Date: Wed, 17 Jan 2024 00:12:48 +0100 Subject: EGLUtils: Fix nullptr usage in EglErrorCallback Fixes #23867. (cherry picked from commit 1ee88ab8e4da66c1bc8eec92f2c6189552f8b98e) --- xbmc/utils/EGLUtils.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xbmc/utils/EGLUtils.cpp b/xbmc/utils/EGLUtils.cpp index 7c5e70938f..85f889dc9f 100644 --- a/xbmc/utils/EGLUtils.cpp +++ b/xbmc/utils/EGLUtils.cpp @@ -115,7 +115,8 @@ void EglErrorCallback(EGLenum error, typeStr = eglType->second; } - CLog::Log(LOGDEBUG, "EGL Debugging:\nError: {}\nCommand: {}\nType: {}\nMessage: {}", errorStr, command, typeStr, message); + CLog::Log(LOGDEBUG, "EGL Debugging:\nError: {}\nCommand: {}\nType: {}\nMessage: {}", errorStr, + command, typeStr, message ? message : ""); } std::set CEGLUtils::GetClientExtensions() -- cgit v1.2.3