]> diplodocus.org Git - nmh/blobdiff - sbr/path.c
mhparse.h: Add externs for skip_mp_cte_check, etc.
[nmh] / sbr / path.c
index 416c32b53d9928207b6e9041547578f80974f0e2..bf9283a30437bf4464b75f0dcae48e930a76a063 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "m_maildir.h"
 
 #define        CWD     "./"
 #define        DOT     "."
@@ -77,9 +78,8 @@ expath (char *name, int flag)
     ep = pwds + strlen (pwds);
     if ((cp = strrchr(pwds, '/')) == NULL)
        cp = ep;
-    else
-       if (cp == pwds)
-           cp++;
+    else if (cp == pwds)
+        cp++;
 
     if (has_prefix(name, CWD))
        name += LEN(CWD);