comparison src/plugin.c @ 7278:6d5dc6a65c47

[gaim-migrate @ 7857] This fixes a bug that was causing notify.so to load statenotify.so. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Thu, 16 Oct 2003 02:51:44 +0000
parents cf1126ba1834
children 0d24c94e4fbc
comparison
equal deleted inserted replaced
7277:2972dad4438b 7278:6d5dc6a65c47
1020 { 1020 {
1021 char *tmp; 1021 char *tmp;
1022 1022
1023 plugin = (GaimPlugin *)l->data; 1023 plugin = (GaimPlugin *)l->data;
1024 1024
1025 if (plugin->path != NULL && 1025 if (plugin->path != NULL) {
1026 (tmp = g_strrstr(plugin->path, basename)) != NULL) 1026 tmp = g_path_get_basename(plugin->path);
1027 { 1027 if (!strcmp(tmp, basename)) {
1028 tmp += strlen(basename); 1028 g_free(tmp);
1029
1030 if (*tmp == '\0')
1031 return plugin; 1029 return plugin;
1030 }
1031 g_free(tmp)
1032 } 1032 }
1033 } 1033 }
1034 1034
1035 return NULL; 1035 return NULL;
1036 } 1036 }