From cd6b636dca9e8b67f429c82bc5c8eceeda79e262 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 26 Oct 2018 19:17:53 -0700 Subject: [PATCH] Don't call a null pointer if a logging function is called before LiStartConnection() --- src/Platform.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Platform.h b/src/Platform.h index 1d2d823..598a1a4 100644 --- a/src/Platform.h +++ b/src/Platform.h @@ -36,7 +36,8 @@ #include "Limelight.h" #define Limelog(s, ...) \ - ListenerCallbacks.logMessage(s, ##__VA_ARGS__) + if (ListenerCallbacks.logMessage) \ + ListenerCallbacks.logMessage(s, ##__VA_ARGS__) #if defined(LC_WINDOWS) #include