changeset 18099:7be04c20bf22

Let's not crash if there's no plugin.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 15 Jun 2007 02:36:53 +0000
parents 1c8853f6bfc6
children f63b3a23280d
files finch/gntplugin.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/finch/gntplugin.c	Fri Jun 15 02:35:52 2007 +0000
+++ b/finch/gntplugin.c	Fri Jun 15 02:36:53 2007 +0000
@@ -106,6 +106,9 @@
 	char *text;
 	GList *list = NULL, *iter = NULL;
 
+	if (!plugin)
+		return;
+
 	/* If the selected plugin was unseen before, mark it as seen. But save the list
 	 * only when the plugin list is closed. So if the user enables a plugin, and it
 	 * crashes, it won't get marked as seen so the user can fix the bug and still