libpurple/plugin.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 33794
716cbef8d1c6
child 38263
8f5e48f0cebb
--- a/libpurple/plugin.c	Thu Mar 23 21:01:15 2017 +0300
+++ b/libpurple/plugin.c	Fri Mar 24 02:23:46 2017 +0300
@@ -99,9 +99,9 @@
 	if (last_period == NULL)
 		return FALSE;
 
-	return !(strcmp(last_period, ".dll") &
-			 strcmp(last_period, ".sl") &
-			 strcmp(last_period, ".so"));
+	return !(!purple_strequal(last_period, ".dll") &
+			 !purple_strequal(last_period, ".sl") &
+			 !purple_strequal(last_period, ".so"));
 }
 
 static char *

mercurial