diff options
author | Sylvain Munaut <tnt@246tNt.com> | 2011-10-16 21:24:08 +0200 |
---|---|---|
committer | Sylvain Munaut <tnt@246tNt.com> | 2011-10-16 21:24:08 +0200 |
commit | 05df2ac27dfc05bc10d274dc6f3d1ca162292739 (patch) | |
tree | b11f2d3eeb9b6f6fb65a500ae13264b2c5d47359 /src/gmr1_rx.c | |
parent | 02b2575adc2bcbab135d9e9b924d0136dc31dcff (diff) |
apps/gmr1_rx: Fix 'wrong' warning about possible uninitialized var
Those can't be used uninitialized but the compiler doesn't 'get' that ...
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
Diffstat (limited to 'src/gmr1_rx.c')
-rw-r--r-- | src/gmr1_rx.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gmr1_rx.c b/src/gmr1_rx.c index 404215e..9f30a8a 100644 --- a/src/gmr1_rx.c +++ b/src/gmr1_rx.c @@ -184,6 +184,8 @@ fcch_multi_process(struct chan_desc *cd, fcch_multi_cb_t cb) n_fcch = rv; /* Check each of them for validity */ + ref_snr = ref_freq_err = 0.0f; + for (i=0, j=0; i<n_fcch; i++) { float freq_err, e_fcch, e_cich, snr; int toa; |