projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pthread_sigmask: Document the module.
[pspp]
/
tests
/
test-fflush.c
diff --git
a/tests/test-fflush.c
b/tests/test-fflush.c
index 3c36ed901a32e19a7a2f18d4f307f858a75b3231..a6c0e18abb15f9f3a7336f9c3751eced75a0e129 100644
(file)
--- a/
tests/test-fflush.c
+++ b/
tests/test-fflush.c
@@
-50,7
+50,8
@@
main (void)
if (!f || 0 > fd || fread (buffer, 1, 5, f) != 5)
{
fputs ("Failed initial read of sample file.\n", stderr);
- fclose (f);
+ if (f)
+ fclose (f);
unlink ("test-fflush.txt");
return 1;
}