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);