...
An environment pointer may also become invalidated by subsequent calls to getenv()
...for more information, see See ENV34-C. Do not store objects pointers returned by certain functions. for more information
Noncompliant Code Example (POSIX)
...