[libcxx] r272641 - Fix syntax error in r272640.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 13 23:08:11 PDT 2016
Author: ericwf
Date: Tue Jun 14 01:08:10 2016
New Revision: 272641
URL: http://llvm.org/viewvc/llvm-project?rev=272641&view=rev
Log:
Fix syntax error in r272640.
Modified:
libcxx/trunk/src/system_error.cpp
Modified: libcxx/trunk/src/system_error.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/system_error.cpp?rev=272641&r1=272640&r2=272641&view=diff
==============================================================================
--- libcxx/trunk/src/system_error.cpp (original)
+++ libcxx/trunk/src/system_error.cpp Tue Jun 14 01:08:10 2016
@@ -70,7 +70,8 @@ string do_strerror_r(int ev) {
string do_strerror_r(int ev) {
char buffer[strerror_buff_size];
const int old_errno = errno;
- if ((int ret = ::strerror_r(ev, buffer, strerror_buff_size)) != 0) {
+ int ret;
+ if ((ret = ::strerror_r(ev, buffer, strerror_buff_size)) != 0) {
// If `ret == -1` then the error is specified using `errno`, otherwise
// `ret` represents the error.
const int new_errno = ret == -1 ? errno : ret;
More information about the cfe-commits
mailing list