diff src/gtklog.c @ 7436:7cdbd2eb7546

[gaim-migrate @ 8041] clean up whitespace, and make it not crash on old logs w/o HTML committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Wed, 05 Nov 2003 22:12:55 +0000
parents 31faec55ef8e
children 8c0527c91a92
line wrap: on
line diff
--- a/src/gtklog.c	Wed Nov 05 18:54:36 2003 +0000
+++ b/src/gtklog.c	Wed Nov 05 22:12:55 2003 +0000
@@ -121,8 +121,8 @@
 	GtkWidget *icon, *label, *pane, *sw, *button;
 	GList *logs;
 	char *text;
-	struct log_viewer_hash_t *ht = g_malloc(sizeof(struct log_viewer_hash_t)); 
-	
+	struct log_viewer_hash_t *ht = g_new0(struct log_viewer_hash_t, 1);
+
 	ht->screenname = g_strdup(screenname);
 	ht->account = account;