From: Soeren Apel Date: Sun, 4 Dec 2016 18:45:30 +0000 (+0100) Subject: DecoderStack: Fix "data may be unitialized" error X-Git-Tag: pulseview-0.4.0~215 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=2b2d10621d5cfd4502fa7a0500170412a5b67941;p=pulseview.git DecoderStack: Fix "data may be unitialized" error --- diff --git a/pv/data/decoderstack.cpp b/pv/data/decoderstack.cpp index d01bab2d..648b4cf5 100644 --- a/pv/data/decoderstack.cpp +++ b/pv/data/decoderstack.cpp @@ -240,7 +240,7 @@ void DecoderStack::begin_decode() // This works because we are currently assuming all // logic signals have the same data/segment pv::data::SignalBase *signalbase; - pv::data::Logic *data; + pv::data::Logic *data = nullptr; for (const shared_ptr &dec : stack_) if (dec && !dec->channels().empty() &&