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
This commit is contained in:
Alexander Couzens 2017-02-03 23:22:18 +01:00 committed by lynxis lazus
parent b3c7c79c04
commit 8a215c3d25
1 changed files with 1 additions and 1 deletions

View File

@ -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: