]> diplodocus.org Git - nmh/blobdiff - uip/mhpath.c
Add check-programs target to Makefile.am to add to `make all'.
[nmh] / uip / mhpath.c
index 3a0a628b6f1e522d387885ee0be5803a8cc72e9d..9ab94392771d40667a8ecf6b3ca11e21c4048c65 100644 (file)
@@ -32,13 +32,7 @@ main(int argc, char **argv)
     struct msgs_array msgs = { 0, 0, NULL };
     struct msgs *mp;
 
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
-    invo_name = r1bindex (argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 2)) { return 1; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;