From 7e52ae5d8bd341abb97050c33bdd77ea344d79ea Mon Sep 17 00:00:00 2001 From: onefang Date: Wed, 20 Oct 2021 15:56:34 +1000 Subject: More fixings? --- src/sledjchisl/sledjchisl.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index 37fa588..eee8ee3 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c @@ -2553,7 +2553,7 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan Results in slightly larger I/OARs, as we store the directory names separately. Can't see any options to not do that. Also, we name them .oar.tgz, to NOT hide the fact they are simple tarballs, while still tagging them as I/OARs. */ - char *name = xstrdup(sim), *tab = xstrdup(simd->tab); + char *name = xstrdup(sim), *tab = NULL; if (FLAG(m)) { @@ -2562,7 +2562,7 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan free(name); name = xmprintf("%s_%s", sim, last); free(tab); - name = xmprintf("%s %s", sim, last); + tab = xmprintf("%s %s", sim, last); } else { @@ -2571,6 +2571,8 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan return; } } + if (NULL == tab) + tab = xstrdup(simd->tab); char type = FLAG(m) ? 'I' : 'O'; char *dir = xmprintf("%s/temp_%c_%s", scBackup, type, name); -- cgit v1.1