X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Ffclose.c;h=8808171e745f84c67c28ed2b7f97316d65dbda92;hb=e1c526e9bad3f6e69391e94059096145390508d3;hp=bc8d852e4d378f4ceb8d154cba1cc18c4e5852aa;hpb=e8926c894a96724d9aff95e364fc2327393550d0;p=pdclib diff --git a/functions/stdio/fclose.c b/functions/stdio/fclose.c index bc8d852..8808171 100644 --- a/functions/stdio/fclose.c +++ b/functions/stdio/fclose.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* fclose( FILE * ) This file is part of the Public Domain C Library (PDCLib). @@ -56,7 +54,7 @@ int fclose( FILE * stream ) remove( stream->filename ); } /* Free user buffer (SetVBuf allocated) */ - if ( ! ( stream->status & _PDCLIB_FREEBUFFER ) ) + if ( stream->status & _PDCLIB_FREEBUFFER ) { free( stream->buffer ); }