summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobbie Harwood <rharwood@redhat.com>2016-09-19 22:01:07 +0000
committerSimo Sorce <simo@redhat.com>2016-09-27 08:49:37 -0400
commit0c04bee1c220812d5f55095688fb2d4256a71d43 (patch)
treeed6da6067a90d6e950905da9650afca2b6b66540
parenteeaa36e4ea3a0284ce970545e1d808c0a26e10f5 (diff)
downloadgss-proxy-0c04bee1c220812d5f55095688fb2d4256a71d43.tar.gz
gss-proxy-0c04bee1c220812d5f55095688fb2d4256a71d43.tar.xz
gss-proxy-0c04bee1c220812d5f55095688fb2d4256a71d43.zip
Appease clang with memset instead of initializer
Signed-off-by: Robbie Harwood <rharwood@redhat.com> Reviewed-by: Simo Sorce <simo@redhat.com> Closes 31
-rw-r--r--proxy/src/mechglue/gpp_creds.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/proxy/src/mechglue/gpp_creds.c b/proxy/src/mechglue/gpp_creds.c
index 2818dd7..31ad9d4 100644
--- a/proxy/src/mechglue/gpp_creds.c
+++ b/proxy/src/mechglue/gpp_creds.c
@@ -183,9 +183,11 @@ OM_uint32 gppint_get_def_creds(OM_uint32 *minor_status,
/* Then try with remote */
if (behavior == GPP_REMOTE_ONLY || behavior == GPP_REMOTE_FIRST) {
- gssx_cred remote = {0};
+ gssx_cred remote;
gssx_cred *premote = NULL;
+ memset(&remote, 0, sizeof(gssx_cred));
+
/* We intentionally ignore failures as finding creds is optional */
maj = retrieve_remote_creds(&min, name ? name->remote : NULL, &remote);
if (maj == GSS_S_COMPLETE) {