summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2017-06-22 11:00:23 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-06-22 22:47:45 +0000
commit42488383275a01e288961f6aebf74fb2eb13817d (patch)
tree85e3f2e534d2bcff351d4fd0ae70015816814b87
parentfa3215618b88264a03477511313311de4e838d99 (diff)
ss7: Fix compilation error (warning)
In osmo_ss7_route_create() as is only initalized if lset can not be initalized. If lset can be initalized, as will not be used so everything is fine. However, the compiler complains that as may not be initalized. Initalizing as to NULL solves the problem. Change-Id: Ibcb3ebf9aaa7717cb553242517abce1499bc9c2a
-rw-r--r--src/osmo_ss7.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 78b22a7..9477543 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -723,7 +723,7 @@ osmo_ss7_route_create(struct osmo_ss7_route_table *rtbl, uint32_t pc,
{
struct osmo_ss7_route *rt;
struct osmo_ss7_linkset *lset;
- struct osmo_ss7_as *as;
+ struct osmo_ss7_as *as = NULL;
OSMO_ASSERT(ss7_initialized);
lset = osmo_ss7_linkset_find_by_name(rtbl->inst, linkset_name);