summaryrefslogtreecommitdiff
path: root/src/m_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_misc.c')
-rw-r--r--src/m_misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/m_misc.c b/src/m_misc.c
index 13ca6768..481539dc 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -212,9 +212,9 @@ char *M_TempFile(char *s)
// Check the TEMP environment variable to find the location.
- temp = getenv("TEMP");
+ tempdir = getenv("TEMP");
- if (temp == NULL)
+ if (tempdir == NULL)
{
tempdir = ".";
}