]> diplodocus.org Git - nmh/blobdiff - uip/mhpath.c
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / uip / mhpath.c
index 180284dbab87510eadb4fde51201cd3989055b32..abf6b01f28247bdc0c3b5f9a994d9368bc1fdb1b 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * mhpath.c -- print full pathnames of nmh messages and folders
+/* mhpath.c -- print full pathnames of nmh messages and folders
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -8,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "sbr/m_maildir.h"
 
 #define MHPATH_SWITCHES \
     X("version", 0, VERSIONSW) \
@@ -61,8 +61,7 @@ main(int argc, char **argv)
        if (*cp == '+' || *cp == '@') {
            if (folder)
                adios (NULL, "only one folder at a time!");
-           else
-               folder = pluspath (cp);
+            folder = pluspath (cp);
        } else
                app_msgarg(&msgs, cp);
     }