X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fcontext_read.c;h=fcc12f99c29c9037a75ef9bdbb3af480b2536a04;hb=0e7106da702d97e10f3bd24d8284a2ab86044ebd;hp=3084ff531a19174573fd4f4476d68cff7041ce5d;hpb=4885712264980e6cbc2039f9158027bee9213475;p=mmh diff --git a/sbr/context_read.c b/sbr/context_read.c index 3084ff5..fcc12f9 100644 --- a/sbr/context_read.c +++ b/sbr/context_read.c @@ -120,6 +120,12 @@ context_read (void) if ((cp = getenv ("MHCONTEXT")) == (char *)0 || *cp == '\0') cp = context; + /* context is NULL if context_foil() was called to disable use of context */ + if (!cp) { + ctxpath = NULL; + return; + } + ctxpath = getcpy (m_maildir (cp)); if ((ib = lkfopen (ctxpath, "r"))) {