]> diplodocus.org Git - nmh/blobdiff - uip/fmttest.c
Merge branch 'tmpfiles'
[nmh] / uip / fmttest.c
index a3a436f4ab2f8fdbd09b81f5bf956d80c4c2a650..2f45e7b5363b96b5b0f7aee34c5837f94da42615 100644 (file)
@@ -121,11 +121,7 @@ main (int argc, char **argv)
     int dat[5];
     struct fmt_callbacks cb, *cbp = NULL;
 
-    setlocale(LC_ALL, "");
-    invo_name = r1bindex (argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 1)) { return 1; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;