diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 09:52:03 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2024-02-06 09:52:03 -0500 |
commit | f7b4187bd7e413d0ab90821485e403553e5f5a32 (patch) | |
tree | bcee4a1f334a6b79fa9ca3139d99f69958162e1a /src | |
parent | 16d36e5d78b290e57b012a5fdc04e52f0d689a8f (diff) | |
download | stasis-f7b4187bd7e413d0ab90821485e403553e5f5a32.tar.gz |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/deliverable.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |