summaryrefslogtreecommitdiffstats
path: root/Source/CTest
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-19 13:05:54 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-05-19 13:05:54 (GMT)
commite031028e10100d3294aaad0bf84394124ec435d6 (patch)
treeed448a9a65f23d7d7cf76ff1d701ef78b442787c /Source/CTest
parenta696dbc815f1524435a391fa3d4ed3f0d7d60d3d (diff)
downloadCMake-e031028e10100d3294aaad0bf84394124ec435d6.zip
CMake-e031028e10100d3294aaad0bf84394124ec435d6.tar.gz
CMake-e031028e10100d3294aaad0bf84394124ec435d6.tar.bz2
ERR: We should really copy the address and not the value
Diffstat (limited to 'Source/CTest')
-rw-r--r--Source/CTest/Curl/formdata.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/Curl/formdata.c b/Source/CTest/Curl/formdata.c
index 36569bf..e99b99f 100644
--- a/Source/CTest/Curl/formdata.c
+++ b/Source/CTest/Curl/formdata.c
@@ -876,10 +876,10 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
{
/* this "cast increases required alignment of target type" but
we consider it OK anyway */
- struct curl_slist* list;
+ struct curl_slist* list=0;
if ( array_state )
{
- memcpy(list, array_value, sizeof(struct curl_slist*));
+ memcpy(&list, &array_value, sizeof(struct curl_slist*));
}
else
{