Change in osmo-bsc[master]: rx_fail_evt_rep(): Don't recycle variable
Harald Welte
gerrit-no-reply at lists.osmocom.org
Sat May 25 09:01:20 UTC 2019
Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/14175
Change subject: rx_fail_evt_rep(): Don't recycle variable
......................................................................
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
---
M src/osmo-bsc/abis_nm.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/75/14175/1
diff --git a/src/osmo-bsc/abis_nm.c b/src/osmo-bsc/abis_nm.c
index 240517b..bff6c12 100644
--- a/src/osmo-bsc/abis_nm.c
+++ b/src/osmo-bsc/abis_nm.c
@@ -368,8 +368,8 @@
oh->length-sizeof(*foh));
if (TLVP_PRESENT(&tp, NM_ATT_ADD_TEXT)) {
- p_val = TLVP_VAL(&tp, NM_ATT_ADD_TEXT);
- p_text = talloc_strndup(tall_bsc_ctx, (const char *) p_val,
+ const uint8_t *val = TLVP_VAL(&tp, NM_ATT_ADD_TEXT);
+ p_text = talloc_strndup(tall_bsc_ctx, (const char *) val,
TLVP_LEN(&tp, NM_ATT_ADD_TEXT));
}
--
To view, visit https://gerrit.osmocom.org/14175
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie79279fc1d42cd57e7478820493b250fe38c2f4f
Gerrit-Change-Number: 14175
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190525/3b84187b/attachment.html>
More information about the gerrit-log
mailing list