Declare environ as char **environ like in environ(7), not char *environ[].

This corrects a problem whereby xargs could not walk the environment table
to count the amount of space it used, and treated it as if it were empty.
This problem was introduced in rev 1.15.

MFC after:	2 days
This commit is contained in:
Tim J. Robbins 2002-07-01 03:21:05 +00:00
parent c0854cd341
commit 99a84ce108
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99199

View File

@ -83,7 +83,7 @@ static const char *eofstr;
static int count, insingle, indouble, pflag, tflag, Rflag, rval, zflag;
static int cnt, Iflag, jfound, Lflag, wasquoted, xflag;
extern char *environ[];
extern char **environ;
int
main(int argc, char *argv[])