Mercurial > pidgin
diff finch/gntplugin.c @ 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 | a924c94ce5da |
children | b8572b937c09 |
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