]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
explicitly initialize the log functions
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 1 Sep 2013 00:23:01 +0000 (03:23 +0300)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sun, 1 Sep 2013 00:23:01 +0000 (03:23 +0300)
lib/gnutls_global.c

index 9da4d700873d9987bd62b3df596e48e7f4530d7d..af291e17d7c2062df2a35a66efea0adad2332f4f 100644 (file)
@@ -47,8 +47,8 @@ void *_gnutls_file_mutex;
 ASN1_TYPE _gnutls_pkix1_asn;
 ASN1_TYPE _gnutls_gnutls_asn;
 
-gnutls_log_func _gnutls_log_func;
-gnutls_audit_log_func _gnutls_audit_log_func;
+gnutls_log_func _gnutls_log_func = NULL;
+gnutls_audit_log_func _gnutls_audit_log_func = NULL;
 int _gnutls_log_level = 0;      /* default log level */
 
 /**