mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08: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:
parent
85741f7eba
commit
ee9946ce3c
@ -86,8 +86,6 @@ main (void)
|
||||
|
||||
char fname[strlen (tmpdir) + sizeof "/tst-scanf14.XXXXXX"];
|
||||
sprintf (fname, "%s/tst-scanf14.XXXXXX", tmpdir);
|
||||
if (fname == NULL)
|
||||
FAIL ();
|
||||
|
||||
/* Create a temporary file. */
|
||||
int fd = mkstemp (fname);
|
||||
|
@ -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);
|
||||
|
@ -117,8 +117,6 @@ main (void)
|
||||
|
||||
char fname[strlen (tmpdir) + sizeof "/tst-scanf16.XXXXXX"];
|
||||
sprintf (fname, "%s/tst-scanf16.XXXXXX", tmpdir);
|
||||
if (fname == NULL)
|
||||
FAIL ();
|
||||
|
||||
/* Create a temporary file. */
|
||||
int fd = mkstemp (fname);
|
||||
|
@ -100,8 +100,6 @@ main (void)
|
||||
|
||||
char fname[strlen (tmpdir) + sizeof "/tst-scanf17.XXXXXX"];
|
||||
sprintf (fname, "%s/tst-scanf17.XXXXXX", tmpdir);
|
||||
if (fname == NULL)
|
||||
FAIL ();
|
||||
|
||||
/* Create a temporary file. */
|
||||
int fd = mkstemp (fname);
|
||||
|
Loading…
Reference in New Issue
Block a user