/pidgin/main: b6865740b29c: Fix tests built on Fedora

Tomasz Wasilczyk <[email protected]>
Newsgroups gmane.comp.gnome.gaim.cvs
Message-ID <[email protected]>
Changeset: b6865740b29ca71385881eb6462e51010c691501
Author:	 Tomasz Wasilczyk <[email protected]>
Date:	 2015-05-09 10:01 +0200
Branch:	 default
URL: https://hg.pidgin.im/pidgin/main/rev/b6865740b29c

Description:

Fix tests built on Fedora

diffstat:

 libpurple/plugins.c |  3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diffs (13 lines):

diff --git a/libpurple/plugins.c b/libpurple/plugins.c
--- a/libpurple/plugins.c
+++ b/libpurple/plugins.c
@@ -992,6 +992,9 @@ purple_plugins_find_plugin(const gchar *
 
 	plugin = gplugin_manager_find_plugin(id);
 
+	if (!plugin)
+		return NULL;
+
 	/* GPlugin refs the plugin object before returning it. This workaround is
 	 * to avoid managing the reference counts everywhere in our codebase where
 	 * we use plugin instances. A plugin object will exist till the plugins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.