Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix backup methods in get_socketpath for IPC client
Previously, the success of `getline` was tested by checking if the buffer it allocates is nonempty and has a nonzero first byte. As `getline` does not explicitly zero out its memory buffer, this may fail (e.g., with AddressSanitizer). Instead, we check that at least one character was returned on standard output. Also, trailing newlines (if present) are now removed.
- Loading branch information