chiark / gitweb /
import: be less aggressive when allocating memory for downloaded payload
authorLennart Poettering <lennart@poettering.net>
Tue, 20 Jan 2015 14:06:01 +0000 (15:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 20 Jan 2015 14:06:58 +0000 (15:06 +0100)
src/import/import-job.c

index fa6dea5..37f8ef7 100644 (file)
@@ -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;