X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-fclose.c;h=cebfcebb81cd4f8daa7215548a3330e38942563a;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=4885159b8605c60efca7058fd011333432bdceac;hpb=341111f654709cd0295607a4abbe721495c77e90;p=gnulib.git diff --git a/tests/test-fclose.c b/tests/test-fclose.c index 4885159b8..cebfcebb8 100644 --- a/tests/test-fclose.c +++ b/tests/test-fclose.c @@ -1,5 +1,5 @@ /* Test of fclose module. - Copyright (C) 2011-2012 Free Software Foundation, Inc. + Copyright (C) 2011-2014 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 @@ -96,7 +96,9 @@ main (int argc, char **argv) } } { - FILE *fp = fdopen (99, "r"); + FILE *fp; + close (99); + fp = fdopen (99, "r"); if (fp != NULL) { errno = 0;