(init_gnutls_functions): Protect against (unlikely) manipulation
of :loaded-from data.
+2012-04-24 Juanma Barranquero <lekktu@gmail.com>
+
+ * gnutls.c (init_gnutls_functions): Protect against (unlikely)
+ manipulation of :loaded-from data.
+
2012-04-23 Juanma Barranquero <lekktu@gmail.com>
* gnutls.c (init_gnutls_functions): The value of :loaded-from is
max_log_level = global_gnutls_log_level;
- GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:",
- SDATA (XCAR (Fget (Qgnutls_dll, QCloaded_from))));
+ {
+ Lisp_Object name = CAR_SAFE (Fget (Qgnutls_dll, QCloaded_from));
+ GNUTLS_LOG2 (1, max_log_level, "GnuTLS library loaded:",
+ STRINGP (name) ? (const char *) SDATA (name) : "unknown");
+ }
+
return 1;
}