Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`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.
- Loading branch information