changeset 13447:7b8f12aacfa1

[gaim-migrate @ 15822] Avoid some more potential NULL-dereferencing, fixes CID 10. committer: Tailor Script <tailor@pidgin.im>
author Stu Tomlinson <stu@nosnilmot.com>
date Tue, 07 Mar 2006 09:59:10 +0000
parents 1118b6fc3206
children 4b8dcf7c38a2
files src/gtkroomlist.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtkroomlist.c	Tue Mar 07 09:33:26 2006 +0000
+++ b/src/gtkroomlist.c	Tue Mar 07 09:59:10 2006 +0000
@@ -649,7 +649,8 @@
 	GaimGtkRoomlist *rl = list->ui_data;
 
 	if (!rl || !rl->dialog || !rl->dialog->pg_needs_pulse) {
-		rl->dialog->pg_to_active = FALSE;
+		if (rl && rl->dialog)
+			rl->dialog->pg_to_active = FALSE;
 		gaim_roomlist_unref(list);
 		return FALSE;
 	}