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:
tjr 2002-07-01 03:21:05 +00:00
parent 5bf62873eb
commit e9cb3033af

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[])