[PATCH] 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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Wed Jul 13 14:56:31 UTC 2016


Review at  https://gerrit.osmocom.org/539

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(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/39/539/1

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: newchange
Gerrit-Change-Id: Iace448caca8152e46244f26c3af250f2035c99eb
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list