X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/64c5ab73d49a8347c541d7de42549a50d5ca56aa..2b60a54adb3b0bf5a9b927708085492b816a6015:/sbr/path.c diff --git a/sbr/path.c b/sbr/path.c index 416c32b5..bf9283a3 100644 --- a/sbr/path.c +++ b/sbr/path.c @@ -7,6 +7,7 @@ #include #include +#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);