rx_fail_evt_rep(): Don't recycle variable
the 'p_val' variable should represent he 'probabl cause value' and nothing else. Let's use other local variables for other things. Change-Id: Ie79279fc1d42cd57e7478820493b250fe38c2f4f
This commit is contained in:
parent
1540025181
commit
052ab5ed3f
|
@ -368,8 +368,8 @@ static int rx_fail_evt_rep(struct msgb *mb, struct gsm_bts *bts)
|
||||||
oh->length-sizeof(*foh));
|
oh->length-sizeof(*foh));
|
||||||
|
|
||||||
if (TLVP_PRESENT(&tp, NM_ATT_ADD_TEXT)) {
|
if (TLVP_PRESENT(&tp, NM_ATT_ADD_TEXT)) {
|
||||||
p_val = TLVP_VAL(&tp, NM_ATT_ADD_TEXT);
|
const uint8_t *val = TLVP_VAL(&tp, NM_ATT_ADD_TEXT);
|
||||||
p_text = talloc_strndup(tall_bsc_ctx, (const char *) p_val,
|
p_text = talloc_strndup(tall_bsc_ctx, (const char *) val,
|
||||||
TLVP_LEN(&tp, NM_ATT_ADD_TEXT));
|
TLVP_LEN(&tp, NM_ATT_ADD_TEXT));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue