aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--src/sledjchisl/sledjchisl.c6
1 files 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
2553 Results in slightly larger I/OARs, as we store the directory names separately. Can't see any options to not do that. 2553 Results in slightly larger I/OARs, as we store the directory names separately. Can't see any options to not do that.
2554 Also, we name them .oar.tgz, to NOT hide the fact they are simple tarballs, while still tagging them as I/OARs. 2554 Also, we name them .oar.tgz, to NOT hide the fact they are simple tarballs, while still tagging them as I/OARs.
2555*/ 2555*/
2556 char *name = xstrdup(sim), *tab = xstrdup(simd->tab); 2556 char *name = xstrdup(sim), *tab = NULL;
2557 2557
2558 if (FLAG(m)) 2558 if (FLAG(m))
2559 { 2559 {
@@ -2562,7 +2562,7 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan
2562 free(name); 2562 free(name);
2563 name = xmprintf("%s_%s", sim, last); 2563 name = xmprintf("%s_%s", sim, last);
2564 free(tab); 2564 free(tab);
2565 name = xmprintf("%s %s", sim, last); 2565 tab = xmprintf("%s %s", sim, last);
2566 } 2566 }
2567 else 2567 else
2568 { 2568 {
@@ -2571,6 +2571,8 @@ void ungitar(simData *simd, char *sim, int count, int window, int panes, int pan
2571 return; 2571 return;
2572 } 2572 }
2573 } 2573 }
2574 if (NULL == tab)
2575 tab = xstrdup(simd->tab);
2574 2576
2575 char type = FLAG(m) ? 'I' : 'O'; 2577 char type = FLAG(m) ? 'I' : 'O';
2576 char *dir = xmprintf("%s/temp_%c_%s", scBackup, type, name); 2578 char *dir = xmprintf("%s/temp_%c_%s", scBackup, type, name);