]> git.marmaro.de Git - mmh/blobdiff - sbr/context_read.c
Pass some globals into sm_init() so that it uses SASL if necessary.
[mmh] / sbr / context_read.c
index 3084ff531a19174573fd4f4476d68cff7041ce5d..fcc12f99c29c9037a75ef9bdbb3af480b2536a04 100644 (file)
@@ -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"))) {