[MERGED] libosmocore[master]: gsm/tlv.h: fix copy-paste error

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Mon May 15 12:51:16 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: gsm/tlv.h: fix copy-paste error
......................................................................


gsm/tlv.h: fix copy-paste error

Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
---
M include/osmocom/gsm/tlv.h
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/include/osmocom/gsm/tlv.h b/include/osmocom/gsm/tlv.h
index 8caddae..4a9bd27 100644
--- a/include/osmocom/gsm/tlv.h
+++ b/include/osmocom/gsm/tlv.h
@@ -68,9 +68,9 @@
 	uint16_t ret;
 
 	if (len <= TVLV_MAX_ONEBYTE)
-		return TLV_GROSS_LEN(len);
+		ret = TLV_GROSS_LEN(len);
 	else
-		return TL16V_GROSS_LEN(len);
+		ret = TL16V_GROSS_LEN(len);
 
 	if (tag > TVLV_MAX_ONEBYTE)
 		ret += 1;

-- 
To view, visit https://gerrit.osmocom.org/2592
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id52ddd8358fd4af1ecc71142deb09f1e237021f3
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Max <msuraev at sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilirator at gmail.com>



More information about the gerrit-log mailing list