projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68c913f
)
import: be less aggressive when allocating memory for downloaded payload
author
Lennart Poettering
<lennart@poettering.net>
Tue, 20 Jan 2015 14:06:01 +0000
(15:06 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 20 Jan 2015 14:06:58 +0000
(15:06 +0100)
src/import/import-job.c
patch
|
blob
|
history
diff --git
a/src/import/import-job.c
b/src/import/import-job.c
index
fa6dea5
..
37f8ef7
100644
(file)
--- 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;