# HG changeset patch # User Sadrul Habib Chowdhury # Date 1181875013 0 # Node ID 7be04c20bf220c7c009cb781f08f7e1795639ab4 # Parent 1c8853f6bfc678b3eb567cb0a52bf5834b7f270a Let's not crash if there's no plugin. diff -r 1c8853f6bfc6 -r 7be04c20bf22 finch/gntplugin.c --- 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