1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-01-20 22:17:03 +00:00

Fix data race detected by Coverity Scan

This commit is contained in:
Carles Fernandez 2019-06-07 12:00:47 +02:00
parent 95159ebb0f
commit ada51b3150
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -457,6 +457,7 @@ int gps_l1_ca_telemetry_decoder_gs::general_work(int noutput_items __attribute__
{
d_CRC_error_counter = 0;
d_flag_preamble = true; // valid preamble indicator (initialized to false every work())
gr::thread::scoped_lock lock(d_setlock);
d_last_valid_preamble = d_sample_counter;
if (!d_flag_frame_sync)
{