aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/net.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/net.c b/src/net.c
index ef661e2..7c76d4c 100644
--- a/src/net.c
+++ b/src/net.c
@@ -48,13 +48,7 @@ struct MemoryStruct* downloadToRam(const char* url)
if (chunk)
{
- chunk->memory = malloc(1);
- if (!chunk->memory)
- {
- free(chunk);
- return NULL;
- }
- chunk->memory[0] = 0;
+ chunk->memory = NULL;
chunk->size = 0;
curl_handle = curl_easy_init();