aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2010-06-16 11:09:18 +0200
committerHarald Welte <laforge@gnumonks.org>2010-06-20 10:44:54 +0200
commitc8794b59779424f7cdc678bb25f8e38c2e58655a (patch)
tree81642e8da400d08e16d450010880bcc4d46da8cd
parent9da921b8b0ad1fe978d22709f87b252732e85b34 (diff)
[BSC] SI: make sure we initialize the data field, not the bitvec structure
-rw-r--r--openbsc/src/system_information.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/system_information.c b/openbsc/src/system_information.c
index a1422588..ff12f851 100644
--- a/openbsc/src/system_information.c
+++ b/openbsc/src/system_information.c
@@ -178,7 +178,7 @@ static int generate_cell_chan_list(u_int8_t *chan_list, struct gsm_bts *bts)
struct bitvec *bv = &bts->si_common.cell_alloc;
/* Zero-initialize the bit-vector */
- memset(&bv->data, 0, bv->data_len);
+ memset(bv->data, 0, bv->data_len);
/* first we generate a bitvec of all TRX ARFCN's in our BTS */
llist_for_each_entry(trx, &bts->trx_list, list) {
@@ -206,7 +206,7 @@ static int generate_bcch_chan_list(u_int8_t *chan_list, struct gsm_bts *bts)
struct bitvec *bv = &bts->si_common.neigh_list;
/* Zero-initialize the bit-vector */
- memset(&bv->data, 0, bv->data_len);
+ memset(bv->data, 0, bv->data_len);
/* first we generate a bitvec of the BCCH ARFCN's in our BSC */
llist_for_each_entry(cur_bts, &bts->network->bts_list, list) {