Fixed the trap in mhmail.
[mmh] / uip / mhpath.c
index 3974515..bb77996 100644 (file)
@@ -2,8 +2,6 @@
 /*
  * mhpath.c -- print full pathnames of nmh messages and folders
  *
- * $Id$
- *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  * complete copyright information.
@@ -57,10 +55,10 @@ main(int argc, char **argv)
                    snprintf (buf, sizeof(buf), "%s [+folder] [msgs] [switches]",
                        invo_name);
                    print_help (buf, switches, 1);
-                   done (1);
+                   done (0);
                case VERSIONSW:
                    print_version(invo_name);
-                   done (1);
+                   done (0);
            }
        }
        if (*cp == '+' || *cp == '@') {
@@ -123,5 +121,6 @@ main(int argc, char **argv)
     seq_save (mp);     /* synchronize message sequences */
     context_save ();   /* save the context file         */
     folder_free (mp);  /* free folder/message structure */
-    return done (0);
+    done (0);
+    return 1;
 }