Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 497878
Collapse All | Expand All

(-)irssi-xmpp-0.52.o/src/core/rosters.c (-1 / +8 lines)
Lines 86-93 Link Here
86
	resource1 = (XMPP_ROSTER_RESOURCE_REC *)resource1_ptr;
86
	resource1 = (XMPP_ROSTER_RESOURCE_REC *)resource1_ptr;
87
	resource2 = (XMPP_ROSTER_RESOURCE_REC *)resource2_ptr;
87
	resource2 = (XMPP_ROSTER_RESOURCE_REC *)resource2_ptr;
88
	if ((cmp = resource2->priority - resource1->priority) == 0
88
	if ((cmp = resource2->priority - resource1->priority) == 0
89
	    && (cmp = resource2->show - resource1->show) == 0)
89
	    && (cmp = resource2->show - resource1->show) == 0) {
90
	    	if (resource1->name == resource2->name)
91
			return 0;
92
		if (resource1->name == NULL)
93
			return -1;
94
		if (resource2->name == NULL)
95
			return 1;
90
		return strcmp(resource1->name, resource2->name);
96
		return strcmp(resource1->name, resource2->name);
97
	}
91
	return cmp;
98
	return cmp;
92
}
99
}
93
100

Return to bug 497878