X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a78fd0cd5c88c35e2611cff4d937cbe00afa47e3..ef1ba39e8dae81091b6c3e73e72825ef6edea3c6:/uip/mkstemp.c diff --git a/uip/mkstemp.c b/uip/mkstemp.c index 8139fec7..f4215c08 100644 --- a/uip/mkstemp.c +++ b/uip/mkstemp.c @@ -109,10 +109,10 @@ build_template(const char *directory, const char *prefix, const char *suffix) { template[len-1] = '\0'; return template; - } else { - perror("malloc"); - return NULL; } + + perror("malloc"); + return NULL; } @@ -150,7 +150,7 @@ process_args(int argc, char **argv, const char **directory, NMH_UNUSED(suffix); # endif /* ! HAVE_MKSTEMPS */ - if (nmh_init(argv[0], 1)) { done(NOTOK); } + if (nmh_init(argv[0], 2)) { done(NOTOK); } arguments = getarguments (invo_name, argc, argv, 1); argp = arguments;