aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2017-02-03 23:22:18 +0100
committerlynxis lazus <lynxis@fe80.eu>2017-03-14 12:00:03 +0000
commit8a215c3d2580a8831c0f1f2d8b513e020d7c4985 (patch)
treec89be6e978c6bafdb8525b08db4c639447f77a46
parentb3c7c79c04ccf15c192a62b78d43040a34697b06 (diff)
gprs_sgsn.c: initialize ptmsi with 0xdeadbeef
Fix uninitialized memory access warning. "Conditional jump or move depends on uninitialised value" Found by valgrind. Change-Id: Ibc2d585c5db899e6af20104211e32faf3822633a
-rw-r--r--openbsc/src/gprs/gprs_sgsn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_sgsn.c b/openbsc/src/gprs/gprs_sgsn.c
index 727524ee6..5d9af7807 100644
--- a/openbsc/src/gprs/gprs_sgsn.c
+++ b/openbsc/src/gprs/gprs_sgsn.c
@@ -611,7 +611,7 @@ struct apn_ctx *sgsn_apn_ctx_find_alloc(const char *name, const char *imsi_prefi
uint32_t sgsn_alloc_ptmsi(void)
{
struct sgsn_mm_ctx *mm;
- uint32_t ptmsi;
+ uint32_t ptmsi = 0xdeadbeef;
int max_retries = 100;
restart: