X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fclearerr.c;h=2bfe7c508448eb92830605de1f78031825ef16d2;hp=4c51d714f54aefb4c019a6b8c216bd6820d19634;hb=38c392a0b8812ee3d1a60b7bda4540a306484e7c;hpb=1c79fa5a475e99eade951e60207ca3544328d42c diff --git a/functions/stdio/clearerr.c b/functions/stdio/clearerr.c index 4c51d71..2bfe7c5 100644 --- a/functions/stdio/clearerr.c +++ b/functions/stdio/clearerr.c @@ -23,7 +23,7 @@ void clearerr( struct _PDCLIB_file_t * stream ) int main( void ) { #ifndef REGTEST - FILE file = { 0, { 0 }, NULL, 0, 0, 0, NULL }; + FILE file = { 0, { 0, 0 }, NULL, 0, 0, 0, _IONBF, NULL, NULL }; FILE * fh = &file; TESTCASE( ! ferror( fh ) ); TESTCASE( ! feof( fh ) );