]> diplodocus.org Git - nmh/blobdiff - uip/anno.c
Dynamically allocate space for the output of fmt_scan(), using
[nmh] / uip / anno.c
index 75bcc68220dbf56357f0a42ca0c366a2036d7f45..26706edac514e8c51f364104cb2915c30c031e1b 100644 (file)
@@ -94,11 +94,7 @@ main (int argc, char **argv)
     int                list = 0;               /* list header elements if set */
     int                number = 0;             /* delete specific number of like elements if set */
 
-    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;