From f7b4187bd7e413d0ab90821485e403553e5f5a32 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 6 Feb 2024 09:52:03 -0500 Subject: Fix segfault * I've changed this behavior numerous times now, and each time it causes issues somewhere else. * This decouples the global tmpdir and delivery context tmpdir pointers. Oh well. --- src/deliverable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/deliverable.c b/src/deliverable.c index b833811..11213d7 100644 --- a/src/deliverable.c +++ b/src/deliverable.c @@ -105,7 +105,7 @@ int delivery_init_tmpdir(struct Delivery *ctx) { } globals.tmpdir = strdup(tmpdir); - ctx->storage.tmpdir = globals.tmpdir; + ctx->storage.tmpdir = strdup(globals.tmpdir); return unusable; l_delivery_init_tmpdir_fatal: -- cgit