diff options
Diffstat (limited to 'testsuite/nsswitch/getgrent_r.c')
-rw-r--r-- | testsuite/nsswitch/getgrent_r.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/testsuite/nsswitch/getgrent_r.c b/testsuite/nsswitch/getgrent_r.c index 3eac8aa218..4f1f0ce8f5 100644 --- a/testsuite/nsswitch/getgrent_r.c +++ b/testsuite/nsswitch/getgrent_r.c @@ -21,7 +21,7 @@ void dump_grent(char *id) sprintf(fname, "/tmp/getgrent_r-%s.out-%d", id, getpid()); - if ((fptr = fopen(fname, "w")) < 0) { + if ((fptr = fopen(fname, "w")) == NULL) { fprintf(stderr, "ERROR: could not open file %s: %s\n", fname, sys_errlist[errno]); return; |