aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-15 00:40:27 -0400
committerHarald Welte <laforge@gnumonks.org>2015-09-06 14:48:33 +0200
commit378a843d233196fef1917c448d2b826edad80007 (patch)
tree2cf543b1c199f36bc9498946e39f28b94a4e2ee5
parent713e847a131a9df07196df44ee4fa44bc3445476 (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.
-rw-r--r--src/osmo-bts-trx/trx_if.c2
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;