On Tue, Sep 28, 2010 at 03:44:15AM +0200, Tamas TEVESZ wrote: > > do we really expect these to change runtime?
No, but you can't rely on the value returned by getenv to remain valid after the next call to getenv. To quote the manpage: The implementation of getenv() is not required to be reentrant. The string pointed to by the return value of getenv() may be statically allocated, and can be modified by a subsequent call to getenv(), putenv(3), setenv(3), or unsetenv(3). The same goes for getpwuid, although I see there you do strdup the result. -- To unsubscribe, send mail to [email protected].
