From e031028e10100d3294aaad0bf84394124ec435d6 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Mon, 19 May 2003 09:05:54 -0400 Subject: [PATCH] ERR: We should really copy the address and not the value --- Source/CTest/Curl/formdata.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/CTest/Curl/formdata.c b/Source/CTest/Curl/formdata.c index 36569bfa24..e99b99f4e1 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 {