X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=sidebar.c;h=f5206c9ecb9d39e648d3f62237f11224ccb02932;hb=004f8d226cb42f93c0025b0ed3a6edf87d7bb8a0;hp=bbc2c60a0dc1ea323feaf24995ace7a7bebcb441;hpb=c2254f5e4dc8510d28dbf32b0c47611750aa88b0;p=apps%2Fmadmutt.git diff --git a/sidebar.c b/sidebar.c index bbc2c60..f5206c9 100644 --- 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)