[MERGED] libosmocore[master]: fix compiler warning: gsup.c: missing braces

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
Sun Jul 17 07:44:11 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: fix compiler warning: gsup.c: missing braces
......................................................................


fix compiler warning: gsup.c: missing braces

osmo_auth_vector's first member is an array, so for a zero initializer, we
should add a second set of array braces.

Change-Id: Iace448caca8152e46244f26c3af250f2035c99eb
---
M src/gsm/gsup.c
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/gsm/gsup.c b/src/gsm/gsup.c
index af3c409..d6b4975 100644
--- a/src/gsm/gsup.c
+++ b/src/gsm/gsup.c
@@ -190,7 +190,7 @@
 	uint8_t *value;
 	size_t value_len;
 	static const struct osmo_gsup_pdp_info empty_pdp_info = {0};
-	static const struct osmo_auth_vector empty_auth_info = {0};
+	static const struct osmo_auth_vector empty_auth_info = {{0}};
 	static const struct osmo_gsup_message empty_gsup_message = {0};
 
 	*gsup_msg = empty_gsup_message;

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iace448caca8152e46244f26c3af250f2035c99eb
Gerrit-PatchSet: 2
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list