diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-16 19:15:42 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2003-05-16 19:15:42 (GMT) |
commit | 083aba04cfe2dba29b267100f52d2387f35dd487 (patch) | |
tree | 70d74e022901bc1aa34ed01be127c9fe6c80b982 /Source/CTest/Curl/formdata.c | |
parent | b524f7573bcc09249006a529ba8c1e2aba8283f4 (diff) | |
download | CMake-083aba04cfe2dba29b267100f52d2387f35dd487.zip CMake-083aba04cfe2dba29b267100f52d2387f35dd487.tar.gz CMake-083aba04cfe2dba29b267100f52d2387f35dd487.tar.bz2 |
ERR: Attempt to remove more warnings
Diffstat (limited to 'Source/CTest/Curl/formdata.c')
-rw-r--r-- | Source/CTest/Curl/formdata.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/CTest/Curl/formdata.c b/Source/CTest/Curl/formdata.c index fabead8..36569bf 100644 --- a/Source/CTest/Curl/formdata.c +++ b/Source/CTest/Curl/formdata.c @@ -876,10 +876,15 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost, { /* this "cast increases required alignment of target type" but we consider it OK anyway */ - struct curl_slist* list = array_state? - (struct curl_slist*)array_value: - va_arg(params, struct curl_slist*); - + struct curl_slist* list; + if ( array_state ) + { + memcpy(list, array_value, sizeof(struct curl_slist*)); + } + else + { + list = va_arg(params, struct curl_slist*); + } if( current_form->contentheader ) return_value = CURL_FORMADD_OPTION_TWICE; else |