ERR: We should really copy the address and not the value

This commit is contained in:
Andy Cedilnik 2003-05-19 09:05:54 -04:00
parent a696dbc815
commit e031028e10
1 changed files with 2 additions and 2 deletions

View File

@ -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
{