changeset 1095:ca8206682e3f

[gaim-migrate @ 1105] ha, whoops. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 14 Nov 2000 10:45:05 +0000
parents 3deadbe50737
children c1dcba9f3a3a
files src/buddy.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/buddy.c	Tue Nov 14 10:34:10 2000 +0000
+++ b/src/buddy.c	Tue Nov 14 10:45:05 2000 +0000
@@ -1062,7 +1062,8 @@
 	i = GTK_TREE_SELECTION(tree);
 	if (i) {
 		b = gtk_object_get_user_data(GTK_OBJECT(i->data));
-        } else {
+        }
+	if (!i || !b) {
 		show_im_dialog();
 		return;
         }
@@ -1085,7 +1086,8 @@
 	i = GTK_TREE_SELECTION(tree);
 	if (i) {
 		b = gtk_object_get_user_data(GTK_OBJECT(i->data));
-        } else {
+        }
+	if (!i || !b) {
 		show_info_dialog();
 		return;
         }