mirror of
https://github.com/gophernicus/gophernicus.git
synced 2025-02-02 15:08:00 -05:00
`getcwd(3)' returns a NULL pointer when it fails, and a pointer to the buffer when it succeeds. The array of characters (allocated on the stack) is not NULL, so it cannot be used to check if `getcwd(3)' succeeded. Use the pointer returned by `getcwd(3)' to check success.