summaryrefslogtreecommitdiff
path: root/StdLib/LibC/Stdio/tempnam.c
diff options
context:
space:
mode:
Diffstat (limited to 'StdLib/LibC/Stdio/tempnam.c')
-rw-r--r--StdLib/LibC/Stdio/tempnam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/StdLib/LibC/Stdio/tempnam.c b/StdLib/LibC/Stdio/tempnam.c
index 368da844d0..f9df427c52 100644
--- a/StdLib/LibC/Stdio/tempnam.c
+++ b/StdLib/LibC/Stdio/tempnam.c
@@ -75,7 +75,7 @@ tempnam(const char *dir, const char *pfx)
char *name, *f;
const char *tmp;
- if (!(name = malloc((size_t)MAXPATHLEN)))
+ if ((name = malloc((size_t)MAXPATHLEN)) == NULL)
return NULL;
if (!pfx)