# HG changeset patch # User Richard Laager # Date 1175043794 0 # Node ID 5d9e85f2eba427f2d46c58181b4773186737c128 # Parent ab7791faefa1f21e9d131b924603c8a056f7fce1# Parent 2b8d4fabc10388d4a35fd4634cbf49bb778c281e merge of '0085ab4270a2c3e855d09e04044376efb74433e1' and '9b3b5e5e845e8180f39ea97f41e9b1f3ecd8de3c' diff -r ab7791faefa1 -r 5d9e85f2eba4 libpurple/plugin.c --- a/libpurple/plugin.c Tue Mar 27 21:01:08 2007 +0000 +++ b/libpurple/plugin.c Wed Mar 28 01:03:14 2007 +0000 @@ -375,7 +375,7 @@ * enter an infinite loop in certain situations by passing * purple_find_plugin_by_id a NULL value. -- ecoffey */ - if (!plugin->info->id || !strcmp(plugin->info->id, "")) + if (plugin->info->id == NULL || *plugin->info->id == '\0') { plugin->error = g_strdup_printf(_("This plugin has not defined an ID.")); purple_debug_error("plugins", "%s is not loadable: info->id is not defined.\n", plugin->path);