summaryrefslogtreecommitdiff
path: root/lib/auth
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-20 16:41:46 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-02-20 18:52:20 +0100
commit9e931dde713ceade35a983f5a2f88d61c29dcd76 (patch)
tree3948dfe20d49b317f1b70402ca26c2bf92843222 /lib/auth
parentb0521c86ff59745253d818505b28808919a46e07 (diff)
downloadgnutls-9e931dde713ceade35a983f5a2f88d61c29dcd76.tar.gz
preinitialize variables to work-around warnings with clang
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/auth')
-rw-r--r--lib/auth/psk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/auth/psk.c b/lib/auth/psk.c
index ea1417b662..e9bb701f33 100644
--- a/lib/auth/psk.c
+++ b/lib/auth/psk.c
@@ -203,6 +203,7 @@ _gnutls_gen_psk_client_kx(gnutls_session_t session,
goto cleanup;
}
+ assert(username.data != NULL);
memcpy(info->username, username.data, username.size);
info->username[username.size] = 0;