# HG changeset patch # User Sean Egan # Date 1066272704 0 # Node ID 6d5dc6a65c47710a4361c1213cfd514cb5132ba2 # Parent 2972dad4438b07914c998d20643f966e9a4e28ba [gaim-migrate @ 7857] This fixes a bug that was causing notify.so to load statenotify.so. committer: Tailor Script diff -r 2972dad4438b -r 6d5dc6a65c47 src/plugin.c --- a/src/plugin.c Thu Oct 16 00:53:02 2003 +0000 +++ b/src/plugin.c Thu Oct 16 02:51:44 2003 +0000 @@ -1022,13 +1022,13 @@ plugin = (GaimPlugin *)l->data; - if (plugin->path != NULL && - (tmp = g_strrstr(plugin->path, basename)) != NULL) - { - tmp += strlen(basename); - - if (*tmp == '\0') + if (plugin->path != NULL) { + tmp = g_path_get_basename(plugin->path); + if (!strcmp(tmp, basename)) { + g_free(tmp); return plugin; + } + g_free(tmp) } }