Change in libosmocore[master]: gprs_ns2: Don't return an empty string in case of unknown LL

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/.

laforge gerrit-no-reply at lists.osmocom.org
Tue Dec 1 17:23:17 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/21426 )

Change subject: gprs_ns2: Don't return an empty string in case of unknown LL
......................................................................

gprs_ns2: Don't return an empty string in case of unknown LL

Change-Id: Id2c689ab83ada18a5cb6d70ded31aacaa701f99c
---
M src/gb/gprs_ns2.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/gb/gprs_ns2.c b/src/gb/gprs_ns2.c
index 7fc737b..9bf1d7f 100644
--- a/src/gb/gprs_ns2.c
+++ b/src/gb/gprs_ns2.c
@@ -265,7 +265,7 @@
 			 gprs_ns2_fr_nsvc_dlci(nsvc));
 		break;
 	default:
-		buf[0] = '\0';
+		snprintf(buf, buf_len, "unknown)");
 		break;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/21426
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Id2c689ab83ada18a5cb6d70ded31aacaa701f99c
Gerrit-Change-Number: 21426
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201201/63960d66/attachment.htm>


More information about the gerrit-log mailing list