aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-06-15 00:40:27 -0400
committerAlexander Chemeris <Alexander.Chemeris@gmail.com>2015-07-20 18:44:00 -0400
commit3b3e16c4e4edac3ffc572ba8b754609e6a67c93f (patch)
tree95be3c24f2caf77328f351676b68c9edc4cee27a
parent8f8c2a621de1977c2684b2b70e06720ac850b858 (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;