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:
parent
b3c7c79c04
commit
8a215c3d25
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue