1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

tests: Remove NULL check for an array

The NULL check for an array on stack is pointless since it will always
be false, so drop it.
This commit is contained in:
Siddhesh Poyarekar
2020-11-11 22:53:50 +05:30
parent 85741f7eba
commit ee9946ce3c
4 changed files with 0 additions and 8 deletions

View File

@@ -69,8 +69,6 @@ main (void)
char fname[strlen (tmpdir) + sizeof "/tst-scanf15.XXXXXX"];
sprintf (fname, "%s/tst-scanf15.XXXXXX", tmpdir);
if (fname == NULL)
FAIL ();
/* Create a temporary file. */
int fd = mkstemp (fname);