mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 22:41:30 +03:00
Support cloning rawfile data
This commit is contained in:
parent
de42f8880e
commit
33f94c265e
@ -639,6 +639,21 @@ struct fetch_multipart_data *fetch_multipart_data_clone(
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (clone->file) {
|
||||
clone->rawfile = strdup(list->rawfile);
|
||||
if (clone->rawfile == NULL) {
|
||||
free(clone->value);
|
||||
free(clone->name);
|
||||
free(clone);
|
||||
if (result != NULL)
|
||||
fetch_multipart_data_destroy(result);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
clone->rawfile = NULL;
|
||||
}
|
||||
|
||||
clone->next = NULL;
|
||||
|
||||
if (result == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user