Andreas Krennmair:
authorak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 27 Feb 2005 17:25:48 +0000 (17:25 +0000)
committerak1 <ak1@e385b8ad-14ed-0310-8656-cc95a2468c6d>
Sun, 27 Feb 2005 17:25:48 +0000 (17:25 +0000)
the context given to set_buffystats might be NULL, handle this case.

git-svn-id: svn://svn.berlios.de/mutt-ng/trunk@106 e385b8ad-14ed-0310-8656-cc95a2468c6d

sidebar.c

index bbc2c60..f5206c9 100644 (file)
--- a/sidebar.c
+++ b/sidebar.c
@@ -207,6 +207,8 @@ void set_curbuffy(char buf[LONG_STRING])
 void set_buffystats (CONTEXT* Context)
 {
   BUFFY* tmp = Incoming;
+  if (!Context)
+    return;
   while (tmp)
   {
     if (strcmp (tmp->path, Context->path) == 0)