libpurple/plugin.c

branch
string-comparison-r2
changeset 38259
c593fc9f5438
parent 33794
716cbef8d1c6
child 38263
8f5e48f0cebb
equal deleted inserted replaced
38258:9a6551eba09c 38259:c593fc9f5438
97 97
98 last_period = strrchr(filename, '.'); 98 last_period = strrchr(filename, '.');
99 if (last_period == NULL) 99 if (last_period == NULL)
100 return FALSE; 100 return FALSE;
101 101
102 return !(strcmp(last_period, ".dll") & 102 return !(!purple_strequal(last_period, ".dll") &
103 strcmp(last_period, ".sl") & 103 !purple_strequal(last_period, ".sl") &
104 strcmp(last_period, ".so")); 104 !purple_strequal(last_period, ".so"));
105 } 105 }
106 106
107 static char * 107 static char *
108 purple_plugin_get_basename(const char *filename) 108 purple_plugin_get_basename(const char *filename)
109 { 109 {

mercurial