changeset 14076:7f0e6b3f4832

[gaim-migrate @ 16697] CID 102 - This would probably take someone messing with prefs.xml manually to be encountered (I don't think there is any way to load plugins with relative paths, but I suppose with libgaim someone might try to do it). committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 11 Aug 2006 02:02:53 +0000
parents 7fbca3653056
children 034a3ffa09de
files src/plugin.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugin.c	Fri Aug 11 01:30:22 2006 +0000
+++ b/src/plugin.c	Fri Aug 11 02:02:53 2006 +0000
@@ -1232,7 +1232,7 @@
 							plugin->path);
 			gaim_plugin_load(plugin);
 		}
-		else if ((plugin = gaim_plugins_find_with_basename(basename)) != NULL)
+		else if (basename && (plugin = gaim_plugins_find_with_basename(basename)) != NULL)
 		{
 			gaim_debug_info("plugins", "Loading saved plugin %s\n",
 							plugin->path);