Jeff King <p...@peff.net> 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 <yn...@vivaldi.com> > Signed-off-by: Jeff King <p...@peff.net> > ---
Makes sense. Thanks.