From: Ken Hornstein Date: Mon, 28 Oct 2013 02:31:50 +0000 (-0400) Subject: Fix bug found by LLVM. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/b1264518b4ea2ce88e892198792b7e0b5cd8b654?ds=inline;hp=acd8a635510ea87b8940c13c5c664a0fc18ebae1 Fix bug found by LLVM. --- diff --git a/uip/replsbr.c b/uip/replsbr.c index 3557c9ec..ee404efd 100644 --- a/uip/replsbr.c +++ b/uip/replsbr.c @@ -434,6 +434,8 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc) rewind (in); lseek (fileno(in), (off_t) 0, SEEK_SET); + arglist = argsplit(mhlproc, &mhl, &argnum); + switch (pid = fork()) { case NOTOK: adios ("fork", "unable to"); @@ -448,7 +450,6 @@ replfilter (FILE *in, FILE *out, char *filter, int fmtproc) * because we never call arglist_free(). But if we ever change * that be sure to use getcpy() for the extra arguments. */ - arglist = argsplit(mhlproc, &mhl, &argnum); arglist[argnum++] = "-form"; arglist[argnum++] = filter; arglist[argnum++] = "-noclear";