changeset 7367:d81406d44e0d

[gaim-migrate @ 7962] This fixes the crash in http://sourceforge.net/tracker/?func=detail&aid=830837&group_id=235&atid=100235 It still doesn't clear the sytem log, but I'm not cool enough for that anyway. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 29 Oct 2003 04:20:22 +0000
parents 566eba9a2b2c
children a21231cc77fd
files src/dialogs.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/dialogs.c	Wed Oct 29 04:06:17 2003 +0000
+++ b/src/dialogs.c	Wed Oct 29 04:20:22 2003 +0000
@@ -1976,7 +1976,7 @@
 {
 	char *text;
 
-	if (view->clear_handle != NULL)
+	if ((view != NULL ) && (view->clear_handle != NULL))
 		return;
 
 	text = g_strdup_printf(_("You are about to remove the log file for %s.  Do you want to continue?"),