aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/deliverable.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/deliverable.c b/src/deliverable.c
index 7471489..36c2876 100644
--- a/src/deliverable.c
+++ b/src/deliverable.c
@@ -115,7 +115,10 @@ int delivery_init_tmpdir(struct Delivery *ctx) {
goto l_delivery_init_tmpdir_fatal;
}
- globals.tmpdir = strdup(tmpdir);
+ if (!globals.tmpdir) {
+ globals.tmpdir = strdup(tmpdir);
+ }
+
if (!ctx->storage.tmpdir) {
ctx->storage.tmpdir = strdup(globals.tmpdir);
}