--- 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")) ||