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/gitweb/?p=pulseview.git;a=commitdiff_plain;h=b85f25545939d923f71609e5cc670e48f4f83f19;hp=793f8096c486d0fba871227d9772a510f7496c08 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;