--- a/jingle/jingle.c Tue Aug 10 02:06:46 2010 +0200
+++ b/jingle/jingle.c Tue Aug 10 15:56:38 2010 +0200
@@ -288,8 +288,6 @@
roster_usr = buddy_search_jid(jid);
reslist = buddy_getresources(roster_usr->data);
for (thisres = reslist; thisres; thisres = g_slist_next(thisres)) {
- choosenres = g_strdup(thisres->data);
- return choosenres;
found = TRUE;
for (indexns = 0; ns[indexns]; indexns++) {
if (!caps_has_feature(buddy_resource_getcaps(roster_usr->data, thisres->data), ns[indexns]))
@@ -302,6 +300,7 @@
g_slist_free(reslist);
return choosenres;
}
+
return NULL;
}