summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadrul Habib Chowdhury <sadrul@pidgin.im>2007-06-15 02:36:53 +0000
committerSadrul Habib Chowdhury <sadrul@pidgin.im>2007-06-15 02:36:53 +0000
commit75c9c3ccf2fff10e2996557126c00496e7a8b78c (patch)
tree2120c94d051efa0ec617266abb9a249d5d46e51f
parent151bfe61727aed78c37e1c559e133783b7f6128b (diff)
downloadpidgin-75c9c3ccf2fff10e2996557126c00496e7a8b78c.tar.gz
Let's not crash if there's no plugin.
-rw-r--r--finch/gntplugin.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/finch/gntplugin.c b/finch/gntplugin.c
index 13c7f9b011..ea7e170d71 100644
--- a/finch/gntplugin.c
+++ b/finch/gntplugin.c
@@ -106,6 +106,9 @@ selection_changed(GntWidget *widget, gpointer old, gpointer current, gpointer nu
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