diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-01 19:48:54 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-03-01 19:54:40 +0100 |
commit | 0a5a47addf0a864dd9ddb98bd0d6931662a1a533 (patch) | |
tree | b19cceda687d99647b262e8bc2625907b4f50f12 /src/osmo-bsc_nat | |
parent | faf0982ae20001519cf20c5d6345dad490a135f2 (diff) |
fix build: gprs_ra_id_by_bts(): ensure to init all values
After recent libosmocore commit "implement support for 3-digit MNC with leading
zeros" c4fce1425e19d604c199c895e227dc2519110456
Id2240f7f518494c9df6c8bda52c0d5092f90f221, struct gprs_ra_id has a new member,
namely mnc_3_digits. In gprs_ra_id_by_bts(), this new member is now not
initialized and may end up having an arbitrary value, which then may amount to
mnc_3_digits == true. Hence the resulting BCD representation of the MCC-MNC may
inadvertently and randomly indicate a leading zero on the MNC.
Use a struct assignment so that all members are guaranteed to be set, and so
that mnc_3_digits will be zero in all cases.
Since above libosmocore commit, nanobts_omlattr_test fails "randomly", fixed by
this patch.
Change-Id: I872ae3b2b0a0cd8f932f3a5fbc77c0dbfcb28bbf
Diffstat (limited to 'src/osmo-bsc_nat')
0 files changed, 0 insertions, 0 deletions