diff options
author | Alexander Chemeris <Alexander.Chemeris@gmail.com> | 2015-06-15 00:40:27 -0400 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2015-09-22 16:41:31 +0200 |
commit | b812839dfab3208928b6b8f45368abcb6b9ff96a (patch) | |
tree | 006e073660d08b7c96fab9608e34c3e076bc98b0 /src/osmo-bts-trx | |
parent | ae525a8761d9651e2824fd7c84f0c7db8aaa37fd (diff) |
trx: fix potential use of uninitialized toa variable.
Not really a bug, as we're smart about it down the stream, but it's better to
be strict here as well.
Diffstat (limited to 'src/osmo-bts-trx')
-rw-r--r-- | src/osmo-bts-trx/trx_if.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c index 5b1125ad..69ad8415 100644 --- a/src/osmo-bts-trx/trx_if.c +++ b/src/osmo-bts-trx/trx_if.c @@ -407,7 +407,7 @@ static int trx_data_read_cb(struct osmo_fd *ofd, unsigned int what) int len; uint8_t tn; int8_t rssi; - float toa; + float toa = 0.0; uint32_t fn; sbit_t bits[148]; int i; |