summaryrefslogtreecommitdiffstats
path: root/Source/CTest/Curl
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-06 12:02:18 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2004-10-06 12:02:18 (GMT)
commit84f04477b260f1c11ba140f7028e649a86211a26 (patch)
tree14becaab67f9b39b3be2499a6fd566df9ad2f12d /Source/CTest/Curl
parentf47690ecaa6a99e4650f75a61201b2138c5680f4 (diff)
downloadCMake-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.c14
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 */