From: Joel Holdsworth Date: Sat, 9 Mar 2013 15:36:28 +0000 (+0000) Subject: Initialise sample_rate in pv::SigSession::feed_in_header X-Git-Tag: pulseview-0.1.0~92 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b85f25545939d923f71609e5cc670e48f4f83f19;p=pulseview.git Initialise sample_rate in pv::SigSession::feed_in_header This resolves the compile failure reported by arekm --- diff --git a/pv/sigsession.cpp b/pv/sigsession.cpp index fc26a23d..6a69fdca 100644 --- a/pv/sigsession.cpp +++ b/pv/sigsession.cpp @@ -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 signal; - uint64_t *sample_rate; + uint64_t *sample_rate = NULL; unsigned int logic_probe_count = 0; unsigned int analog_probe_count = 0;