diff options
Diffstat (limited to 'src/easy_download.c')
-rw-r--r-- | src/easy_download.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/easy_download.c b/src/easy_download.c index d57202580..1dff510a5 100644 --- a/src/easy_download.c +++ b/src/easy_download.c @@ -28,8 +28,10 @@ #include <curl/curl.h> static size_t write_data(void *buffer, size_t size, - size_t nmemb, easy_download_struct *dld) + size_t nmemb, void *data) { + easy_download_struct *dld = data; + if(dld->data == NULL) { dld->size = 0; |