Jeff King <peff@xxxxxxxx> writes: > The return value of getenv() is not guaranteed to remain valid across > multiple calls (nor across calls to setenv()). Since this function > caches the result for the length of the program, we must make a copy to > ensure that it is still valid when we need it. > > Reported-by: Yngve N. Pettersen <yngve@xxxxxxxxxxx> > Signed-off-by: Jeff King <peff@xxxxxxxx> > --- Makes sense. Thanks.