projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tests: don't assume fd 99 is closed
[gnulib.git]
/
tests
/
test-fwrite.c
diff --git
a/tests/test-fwrite.c
b/tests/test-fwrite.c
index
671c033
..
ef72338
100644
(file)
--- a/
tests/test-fwrite.c
+++ b/
tests/test-fwrite.c
@@
-72,7
+72,9
@@
main (int argc, char **argv)
}
}
{
- FILE *fp = fdopen (99, "w");
+ FILE *fp;
+ close (99);
+ fp = fdopen (99, "w");
if (fp != NULL)
{
char buf[5] = "world";