From 88a1aadc48e5bbefd2e689db099569ec4c3c1e4b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 20 Jan 2015 15:06:01 +0100 Subject: [PATCH] import: be less aggressive when allocating memory for downloaded payload --- src/import/import-job.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/import/import-job.c b/src/import/import-job.c index fa6dea55289..37f8ef76e4d 100644 --- a/src/import/import-job.c +++ b/src/import/import-job.c @@ -369,6 +369,7 @@ static int import_job_detect_compression(ImportJob *j) { j->payload = NULL; j->payload_size = 0; + j->payload_allocated = 0; j->state = IMPORT_JOB_RUNNING;