c++: Return NULL of getenv causes segmentation fault (core dumped) vlsi12 Uncategorized November 30, 2018 1 Minute When use getenv function, it shall judge the return whether NULL. Otherwise, it will cause core dump. Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading... Related Published by vlsi12 https://www.linkedin.com/in/yan-z-81a32729/ View all posts by vlsi12 Published November 30, 2018