]> sigrok.org Git - pulseview.git/commitdiff
Initialise sample_rate in pv::SigSession::feed_in_header
authorJoel Holdsworth <redacted>
Sat, 9 Mar 2013 15:36:28 +0000 (15:36 +0000)
committerJoel Holdsworth <redacted>
Sat, 9 Mar 2013 17:03:28 +0000 (17:03 +0000)
This resolves the compile failure reported by arekm

pv/sigsession.cpp

index fc26a23d784b0f5b2c11fecf993e01358f582428..6a69fdca2b99970aa0a86234a92fc0336dcb33c0 100644 (file)
@@ -172,7 +172,7 @@ void SigSession::sample_thread_proc(struct sr_dev_inst *sdi,
 void SigSession::feed_in_header(const sr_dev_inst *sdi)
 {
        shared_ptr<view::Signal> signal;
-       uint64_t *sample_rate;
+       uint64_t *sample_rate = NULL;
        unsigned int logic_probe_count = 0;
        unsigned int analog_probe_count = 0;