Eliminate coredump problem introduced by last commit.

Noticed by:	Guido van Rooij <guido at gvr dot org>
This commit is contained in:
Craig Rodrigues 2005-11-14 13:35:08 +00:00
parent 8cc56e0ecb
commit 8cb6926e16

View File

@ -931,7 +931,10 @@ addarg(const char *cp)
crash();
/*NOTREACHED*/
}
arglist[argcount++] = strdup(cp);
if (cp != NULL)
arglist[argcount++] = xstrdup(cp);
else
arglist[argcount++] = NULL;
}
@ -943,7 +946,10 @@ putarg(int place, const char *cp)
crash();
/*NOTREACHED*/
}
arglist[place] = strdup(cp);
if (cp != NULL)
arglist[place] = xstrdup(cp);
else
arglist[place] = NULL;
}
/*