summaryrefslogtreecommitdiff
path: root/libpurple/certificate.c
diff options
context:
space:
mode:
authorWilliam Ehlhardt <williamehlhardt@gmail.com>2007-08-18 20:00:26 +0000
committerWilliam Ehlhardt <williamehlhardt@gmail.com>2007-08-18 20:00:26 +0000
commit99c074f294563b04ac7f459d496a325d069f1b66 (patch)
tree18862d68c240d3d97e3daf29876405e5f73f6496 /libpurple/certificate.c
parent8f078e45241ac6da922b21b9cc6c44522e65ee44 (diff)
downloadpidgin-99c074f294563b04ac7f459d496a325d069f1b66.tar.gz
- Fix some g_free()s of string constants that caused crashing
Diffstat (limited to 'libpurple/certificate.c')
-rw-r--r--libpurple/certificate.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/libpurple/certificate.c b/libpurple/certificate.c
index 3f018081fc..bd916b53d6 100644
--- a/libpurple/certificate.c
+++ b/libpurple/certificate.c
@@ -1776,7 +1776,7 @@ purple_certificate_display_x509(PurpleCertificate *crt)
time_t activation, expiration;
/* Length of these buffers is dictated by 'man ctime_r' */
gchar activ_str[26], expir_str[26];
- gchar *title, *primary, *secondary;
+ gchar *secondary;
/* Pull out the SHA1 checksum */
sha_bin = purple_certificate_get_fingerprint_sha1(crt);
@@ -1796,8 +1796,6 @@ purple_certificate_display_x509(PurpleCertificate *crt)
ctime_r(&expiration, expir_str);
/* Make messages */
- title = _("Certificate Information");
- primary = ""; /* libpurple doesn't like NULL messages */
secondary = g_strdup_printf(_("Common name: %s\n\n"
"Fingerprint (SHA1): %s\n\n"
"Activation date: %s\n"
@@ -1807,14 +1805,12 @@ purple_certificate_display_x509(PurpleCertificate *crt)
/* Make a semi-pretty display */
purple_notify_info(
NULL, /* TODO: Find what the handle ought to be */
- title,
- primary,
+ _("Certificate Information"),
+ "",
secondary);
/* Cleanup */
g_free(cn);
- g_free(title);
- g_free(primary);
g_free(secondary);
g_free(sha_asc);
g_byte_array_free(sha_bin, TRUE);