diff options
author | Philipp Maier <pmaier@sysmocom.de> | 2017-01-25 12:19:08 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-01-27 22:18:06 +0000 |
commit | 6934a0fa9e50d46326e790989aedfee8b1c996f2 (patch) | |
tree | c9dc89c109c6ea790912e53519992cc0ba4de4e8 /openbsc/src/gprs/gprs_gmm.c | |
parent | f18862309172e63c9631863cddceedb20ca3add2 (diff) |
gprs: Fix compiler warning about uninitalized cause code
in gprs_gmm.c:gsm48_rx_gmm_ra_upd_req the variable reject_cause
is not initalized, which is ok, since it gets initalized before
the jump into the "rejected" path. However, the compiler still
throws a warning. This commit fixes the problem by preinitalizing
the reject_cause to GMM_CAUSE_PROTO_ERR_UNSPEC
Change-Id: I84cffb631e4cad3d4748512b47e3876208f53727
Diffstat (limited to 'openbsc/src/gprs/gprs_gmm.c')
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index 88be5126e..dc73693ce 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -1415,7 +1415,7 @@ static int gsm48_rx_gmm_ra_upd_req(struct sgsn_mm_ctx *mmctx, struct msgb *msg, struct gprs_ra_id old_ra_id; struct tlv_parsed tp; uint8_t upd_type; - enum gsm48_gmm_cause reject_cause; + enum gsm48_gmm_cause reject_cause = GMM_CAUSE_PROTO_ERR_UNSPEC; int rc; /* TODO: In iu mode - handle follow-on request */ |