diff options
Diffstat (limited to 'StdLib/LibC')
-rw-r--r-- | StdLib/LibC/Main/Arm/flt_rounds.c | 2 | ||||
-rw-r--r-- | StdLib/LibC/Stdio/Stdio.inf | 1 | ||||
-rw-r--r-- | StdLib/LibC/Stdio/tempnam.c | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/StdLib/LibC/Main/Arm/flt_rounds.c b/StdLib/LibC/Main/Arm/flt_rounds.c index a64f447aab..7e052cc337 100644 --- a/StdLib/LibC/Main/Arm/flt_rounds.c +++ b/StdLib/LibC/Main/Arm/flt_rounds.c @@ -43,7 +43,7 @@ static const int map[] = { 1, /* round to nearest */
2, /* round to positive infinity */
3, /* round to negative infinity */
- 0 /* round to zero */
+ 0 /* round to zero */
};
/*
diff --git a/StdLib/LibC/Stdio/Stdio.inf b/StdLib/LibC/Stdio/Stdio.inf index 1b8852e0b5..a61a5584bf 100644 --- a/StdLib/LibC/Stdio/Stdio.inf +++ b/StdLib/LibC/Stdio/Stdio.inf @@ -62,6 +62,7 @@ setvbuf.c #
sprintf.c #
sscanf.c #
+ tempnam.c #
tmpfile.c #
tmpnam.c #
ungetc.c #
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)
|