From 14daf81fadb855045e681277c86b4bcec225d33f Mon Sep 17 00:00:00 2001 From: Grzegorz Rychlik Date: Mon, 2 Mar 2020 14:13:26 +0100 Subject: [PATCH] Fix nullptr dereference in logging --- Src/ChannelLinter/MockDeviceBridge.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/ChannelLinter/MockDeviceBridge.cpp b/Src/ChannelLinter/MockDeviceBridge.cpp index 8122702..d0c5e77 100644 --- a/Src/ChannelLinter/MockDeviceBridge.cpp +++ b/Src/ChannelLinter/MockDeviceBridge.cpp @@ -62,7 +62,7 @@ namespace MWR::C3::Linter { static std::mutex mutex; std::lock_guard lock(mutex); - std::cout << MWR::C3::Utils::ConvertLogMessageToConsoleText("", message, nullptr) << std::endl; + std::cout << MWR::C3::Utils::ConvertLogMessageToConsoleText("", message, "") << std::endl; } void MockDeviceBridge::SetUpdateDelay(std::chrono::milliseconds minUpdateDelay, std::chrono::milliseconds maxUpdateDelay)