[gaim-migrate @ 1621]

Sat, 17 Mar 2001 13:10:00 +0000

author
Eric Warmenhoven <warmenhoven@yahoo.com>
date
Sat, 17 Mar 2001 13:10:00 +0000
changeset 1611
4f0728d762eb
parent 1610
79a64e42d1a2
child 1612
7ce787de8185

[gaim-migrate @ 1621]
i forget if this is safe or not.

plugins/jabber/jabber.c file | annotate | diff | comparison | revisions
--- a/plugins/jabber/jabber.c	Sat Mar 17 13:02:57 2001 +0000
+++ b/plugins/jabber/jabber.c	Sat Mar 17 13:10:00 2001 +0000
@@ -607,11 +607,12 @@
 	if (!cnv) {
 		resources = b->proto_data;
 		res = who->resource;
-		while (resources) {
-			if (!strcmp(res, resources->data))
-				break;
-			resources = resources->next;
-		}
+		if (res)
+			while (resources) {
+				if (!strcmp(res, resources->data))
+					break;
+				resources = resources->next;
+			}
 
 		if (type && (strcasecmp(type, "unavailable") == 0)) {
 			g_free(resources->data);

mercurial