pidgin/plugins/cap/cap.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 38258
9a6551eba09c
child 38260
dcada91c0912
--- a/pidgin/plugins/cap/cap.c	Thu Mar 23 21:01:15 2017 +0300
+++ b/pidgin/plugins/cap/cap.c	Fri Mar 24 02:23:46 2017 +0300
@@ -621,7 +621,7 @@
 	/* It would seem that some protocols receive periodic updates of the buddies status.
 	 * Check to make sure the last status is not the same as current status to prevent
 	 * to many duplicated useless database entries. */
-	if(strcmp(statistics->last_status_id, purple_status_get_id(status)) == 0)
+	if(purple_strequal(statistics->last_status_id, purple_status_get_id(status)))
 		return;
 
 	status_id = purple_status_get_id(status);

mercurial