Skip to content

Commit

Permalink
Merge pull request #1 from philpem/fix-uninitialised-variables
Browse files Browse the repository at this point in the history
fix uninitialised variable usage
  • Loading branch information
mutability committed Jan 18, 2015
2 parents 4ede4bf + 662605a commit a877f9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/usrp_source.cc
Expand Up @@ -53,6 +53,7 @@ usrp_source::usrp_source(float sample_rate, long int fpga_master_clock_freq) {
m_sample_rate = 0.0;
m_decimation = 0;
m_cb = new circular_buffer(CB_LEN, sizeof(complex), 0);
m_freq_corr = 0;

pthread_mutex_init(&m_u_mutex, 0);
}
Expand All @@ -63,6 +64,7 @@ usrp_source::usrp_source(unsigned int decimation, long int fpga_master_clock_fre
m_fpga_master_clock_freq = fpga_master_clock_freq;
m_sample_rate = 0.0;
m_cb = new circular_buffer(CB_LEN, sizeof(complex), 0);
m_freq_corr = 0;

pthread_mutex_init(&m_u_mutex, 0);

Expand Down

0 comments on commit a877f9e

Please sign in to comment.