summaryrefslogtreecommitdiff
path: root/lib/x509/privkey_pkcs8.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-20 14:03:40 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-02-20 18:52:17 +0100
commit944638f77c919baa4c06c8c2ced99dd3e2821514 (patch)
tree419003815e5f25ca818fbbdd26bac1161880084d /lib/x509/privkey_pkcs8.c
parentaa78a8c916d62a92d36be861e0433f00452688aa (diff)
downloadgnutls-944638f77c919baa4c06c8c2ced99dd3e2821514.tar.gz
eliminated various clang warnings with non-null arguments
That is, use assert() to ensure that known to be non-null variables will be used as input to functions requiring non-null. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/x509/privkey_pkcs8.c')
-rw-r--r--lib/x509/privkey_pkcs8.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/x509/privkey_pkcs8.c b/lib/x509/privkey_pkcs8.c
index cc52be94a8..06c9ec0bce 100644
--- a/lib/x509/privkey_pkcs8.c
+++ b/lib/x509/privkey_pkcs8.c
@@ -509,6 +509,8 @@ gnutls_pkcs8_info(const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format,
goto cleanup;
}
+ assert(p != NULL);
+
if (need_free)
_gnutls_free_datum(&_data);