]> sigrok.org Git - pulseview.git/blobdiff - pv/data/decoderstack.cpp
DecoderStack: Fix "data may be unitialized" error
[pulseview.git] / pv / data / decoderstack.cpp
index d01bab2de111b155c9880ecf72a4fd3806316e62..648b4cf57917a0cf3ea0a608942b1313c88719a6 100644 (file)
@@ -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<decode::Decoder> &dec : stack_)
                if (dec && !dec->channels().empty() &&