libpurple/dnssrv.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 36256
a437550a9308
child 40764
d687fda4047d
--- a/libpurple/dnssrv.c	Thu Mar 23 21:01:15 2017 +0300
+++ b/libpurple/dnssrv.c	Fri Mar 24 02:23:46 2017 +0300
@@ -671,7 +671,7 @@
 
 			for (dr_tmp = dr; dr_tmp != NULL; dr_tmp = dr_tmp->pNext) {
 				/* Discard any incorrect entries. I'm not sure if this is necessary */
-				if (dr_tmp->wType != type || strcmp(dr_tmp->pName, query_data->query) != 0) {
+				if (dr_tmp->wType != type || !purple_strequal(dr_tmp->pName, query_data->query)) {
 					continue;
 				}
 
@@ -699,7 +699,7 @@
 				int i;
 
 				/* Discard any incorrect entries. I'm not sure if this is necessary */
-				if (dr_tmp->wType != type || strcmp(dr_tmp->pName, query_data->query) != 0) {
+				if (dr_tmp->wType != type || !purple_strequal(dr_tmp->pName, query_data->query)) {
 					continue;
 				}
 

mercurial