diff src/log.c @ 5896:a156d08e481e

[gaim-migrate @ 6328] Groove is in the heart committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 15 Jun 2003 18:22:11 +0000
parents 059d95c67cda
children 91ee71a394be
line wrap: on
line diff
--- a/src/log.c	Sun Jun 15 17:08:46 2003 +0000
+++ b/src/log.c	Sun Jun 15 18:22:11 2003 +0000
@@ -278,11 +278,12 @@
 void system_log(enum log_event what, GaimConnection *gc,
 				struct buddy *who, int why)
 {
-	GaimAccount *account;
+	GaimAccount *account = NULL;
 	FILE *fd;
 	char text[256], html[256];
 
-	account = gaim_connection_get_account(gc);
+	if (gc != NULL)
+		account = gaim_connection_get_account(gc);
 
 	if ((why & OPT_LOG_MY_SIGNON &&
 		 !gaim_prefs_get_bool("/gaim/gtk/logging/log_own_states")) ||