[BSC] SI: make sure we initialize the data field, not the bitvec structure
diff --git a/openbsc/src/system_information.c b/openbsc/src/system_information.c
index a142258..ff12f85 100644
--- a/openbsc/src/system_information.c
+++ b/openbsc/src/system_information.c
@@ -178,7 +178,7 @@
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 @@
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) {