projects
/
gsu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gsu_make_tempfile(): Avoid reading an unbound variable.
[gsu.git]
/
common
diff --git
a/common
b/common
index 4e1d115cb8473dd15ccba7c6fac806746cc8e4c7..ec7b8e2cfd816f1faadc6b2ffd8c45c2da37fc28 100644
(file)
--- a/
common
+++ b/
common
@@
-107,7
+107,7
@@
gsu_make_tempfile()
if [[ "${template:0:1}" != '/' ]]; then # relative path
if (($# > 1)); then
dir="$2"
- elif [[ -n "$
TMPDIR
" ]]; then
+ elif [[ -n "$
{TMPDIR:-}
" ]]; then
dir="$TMPDIR"
else
dir="/tmp"