changeset 23743:e72e03fb5ef1

Fix a crash on exit when using --with-system-ssl-certs committer: Richard Laager <rlaager@wiktel.com>
author Mark Doliner <mark@kingant.net>
date Sat, 09 Aug 2008 02:04:21 +0000
parents de8f2d3e538a
children 357168efca68
files libpurple/certificate.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/certificate.c	Fri Aug 08 23:34:27 2008 +0000
+++ b/libpurple/certificate.c	Sat Aug 09 02:04:21 2008 +0000
@@ -746,7 +746,7 @@
 						   "ca-certs", NULL));
 #else
 # ifdef SSL_CERTIFICATES_DIR
-		x509_ca_paths = g_list_append(NULL, SSL_CERTIFICATES_DIR);
+		x509_ca_paths = g_list_append(NULL, g_strdup(SSL_CERTIFICATES_DIR));
 # else
 		x509_ca_paths = g_list_append(NULL, g_build_filename(DATADIR,
 						   "purple", "ca-certs", NULL));