If the environment variable is not defined, getenv returns NULL. Passing a NULL pointer to the "%s" format specifier is undefined behavior. Even if some implementations output "(null)", an empty string is nicer.master
parent
2960b2c9b6
commit
a1c6052383
Loading…
Reference in new issue