]> diplodocus.org Git - nmh/blobdiff - config/config.c
test/common.sh.in: Clarify it's the first failure by a *named* test.
[nmh] / config / config.c
index 7d9f26338c093eba1e3d7fd613397e40a0f29719..49d5c8a45a7fb3362cb0f876a3443fdc088c1837 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <h/mh.h>
+#include "../sbr/m_maildir.h"
 #include <pwd.h>
 
 #define nmhbindir(file) NMHBINDIR#file
@@ -56,7 +57,7 @@ etcpath (char *file)
                }
            }
 
-           snprintf (epath, sizeof(epath), "%s/%s", pp, cp ? cp : "");
+           snprintf (epath, sizeof(epath), "%s/%s", pp, FENDNULL(cp));
            if (cp)
                *--cp = '/';