diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-06 12:02:18 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2004-10-06 12:02:18 (GMT) |
commit | 84f04477b260f1c11ba140f7028e649a86211a26 (patch) | |
tree | 14becaab67f9b39b3be2499a6fd566df9ad2f12d /Source/CTest/Curl | |
parent | f47690ecaa6a99e4650f75a61201b2138c5680f4 (diff) | |
download | CMake-84f04477b260f1c11ba140f7028e649a86211a26.zip CMake-84f04477b260f1c11ba140f7028e649a86211a26.tar.gz CMake-84f04477b260f1c11ba140f7028e649a86211a26.tar.bz2 |
COMP: Fix C build problem in certain conditions
Diffstat (limited to 'Source/CTest/Curl')
-rw-r--r-- | Source/CTest/Curl/strerror.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/Source/CTest/Curl/strerror.c b/Source/CTest/Curl/strerror.c index fafe9ec..ea5bcd8 100644 --- a/Source/CTest/Curl/strerror.c +++ b/Source/CTest/Curl/strerror.c @@ -547,12 +547,14 @@ const char *Curl_strerror(struct connectdata *conn, int err) } #endif /* end of HAVE_GLIBC_STRERROR_R */ #else /* HAVE_STRERROR_R */ - char *msg = strerror(err); - if ( !msg ) - { - msg = "Unknown System Error"; - } - strncpy(buf, msg, max); + { + char *msg = strerror(err); + if ( !msg ) + { + msg = "Unknown System Error"; + } + strncpy(buf, msg, max); + } #endif /* end of HAVE_STRERROR_R */ #endif /* end of ! Windows */ |