Skip to content

Commit

Permalink
[src] Improve calling strerror_r() (discard its return value)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigma711 committed Aug 28, 2023
1 parent f2141e9 commit 7ba7ed1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connecting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void Connecting::DoWithError() const {
saved_errno = opt_val;
}
char errno_info[512];
auto tmp_ptr = ::strerror_r(saved_errno, errno_info, sizeof(errno_info));
::strerror_r(saved_errno, errno_info, sizeof(errno_info));
LOG_ERROR("Fd(%d) gets an error -- %s!!!", Fd(), errno_info);
}

Expand Down

0 comments on commit 7ba7ed1

Please sign in to comment.