From 5a6271c85d023329e6333922c1d7d0899b0d5099 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Tue, 10 Mar 2015 12:27:17 +1100 Subject: [PATCH] Fix inverse logic --- lrzip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lrzip.c b/lrzip.c index 54047fb..5c65c6b 100644 --- a/lrzip.c +++ b/lrzip.c @@ -1270,7 +1270,7 @@ bool initialise_control(rzip_control *control) eptr = getenv("TEMPDIR"); if (!eptr) eptr = getenv("TEMP"); - if (!eptr) { + if (eptr) { size_t len = strlen(eptr); control->tmpdir = malloc(len+2);