summaryrefslogtreecommitdiffstats
path: root/openbsc/src/libbsc/bsc_init.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 12:30:45 +0200
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-09-11 12:41:23 +0200
commitd98136d25c39fbec818b7a9e57ce8afc7346d076 (patch)
tree8432570cb16c11ed2a76ff14de62985a9570b6f8 /openbsc/src/libbsc/bsc_init.c
parenta5050b14c9eb4d167fcd711e7f0f9e456e7e5bac (diff)
bsc_init: Initialize rc on all paths to address a compiler warning
bsc_init.c:203:6: warning: ‘rc’ may be used uninitialized in this function [-Wmaybe-uninitialized] bsc_init.c:101:6: note: ‘rc’ was declared here
Diffstat (limited to 'openbsc/src/libbsc/bsc_init.c')
-rw-r--r--openbsc/src/libbsc/bsc_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libbsc/bsc_init.c b/openbsc/src/libbsc/bsc_init.c
index 6d00374e0..153355d61 100644
--- a/openbsc/src/libbsc/bsc_init.c
+++ b/openbsc/src/libbsc/bsc_init.c
@@ -124,6 +124,7 @@ static int rsl_si(struct gsm_bts_trx *trx, enum osmo_sysinfo_type i, int si_len)
osmo_sitype2rsl(i),
GSM_BTS_SI(bts, i), si_len);
}
+ rc = 0;
} else
rc = rsl_sacch_filling(trx, osmo_sitype2rsl(i),
GSM_BTS_SI(bts, i), si_len);