summaryrefslogtreecommitdiff
path: root/src/import/import-job.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-20 15:06:01 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-20 15:06:58 +0100
commit88a1aadc48e5bbefd2e689db099569ec4c3c1e4b (patch)
treee4be14d75e55e66b3dfc283172f85452ddef8e9d /src/import/import-job.c
parent68c913fd751f5c750e3c786b4ed512154b354599 (diff)
import: be less aggressive when allocating memory for downloaded payload
Diffstat (limited to 'src/import/import-job.c')
-rw-r--r--src/import/import-job.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/import/import-job.c b/src/import/import-job.c
index fa6dea5528..37f8ef76e4 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;