mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 04:43:32 +00:00
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:
parent
c0854cd341
commit
99a84ce108
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=99199
@ -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[])
|
||||
|
Loading…
Reference in New Issue
Block a user