From 3e6fe8afefb7e0040af68f906962a03a360ea0a9 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 26 Sep 2021 11:51:03 +0200 Subject: [PATCH] Fixed pointer initialization. Fixes #1000 --- sdrbase/device/deviceset.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrbase/device/deviceset.cpp b/sdrbase/device/deviceset.cpp index a9e2d4ff0..e667963e4 100644 --- a/sdrbase/device/deviceset.cpp +++ b/sdrbase/device/deviceset.cpp @@ -148,7 +148,7 @@ void DeviceSet::loadRxChannelSettings(const Preset *preset, PluginAPI *pluginAPI for (int i = 0; i < preset->getChannelCount(); i++) { const Preset::ChannelConfig& channelConfig = preset->getChannelConfig(i); - ChannelAPI *channelAPI; + ChannelAPI *channelAPI = nullptr; // if we have one instance available already, use it