X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fputc.c;h=e05f641ed319087baa515bc123ae1bf4f5f09380;hb=533101a268dc5015a140ff4695d8eeb04fbe57b6;hp=924c2225f2c6fc7edb2bd8853919eb1a963439e0;hpb=1602f0afed21be664fcf5c42d59db07cc22c56d6;p=gnulib.git
diff --git a/tests/test-fputc.c b/tests/test-fputc.c
index 924c2225f..e05f641ed 100644
--- a/tests/test-fputc.c
+++ b/tests/test-fputc.c
@@ -1,5 +1,5 @@
/* Test of fputc() function.
- Copyright (C) 2011-2012 Free Software Foundation, Inc.
+ Copyright (C) 2011-2013 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -12,8 +12,7 @@
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
+ along with this program; if not, see . */
#include
@@ -71,7 +70,9 @@ main (int argc, char **argv)
}
}
{
- FILE *fp = fdopen (99, "w");
+ FILE *fp;
+ close (99);
+ fp = fdopen (99, "w");
if (fp != NULL)
{
setvbuf (fp, NULL, _IONBF, 0);