projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8ab0d70
)
entered into RCS
author
roland
<roland>
Wed, 31 Jul 1991 05:32:38 +0000
(
05:32
+0000)
committer
roland
<roland>
Wed, 31 Jul 1991 05:32:38 +0000
(
05:32
+0000)
stdio/fclose.c
patch
|
blob
|
history
diff --git
a/stdio/fclose.c
b/stdio/fclose.c
index
d9fdea7
..
becb858
100644
(file)
--- a/
stdio/fclose.c
+++ b/
stdio/fclose.c
@@
-57,7
+57,7
@@
DEFUN(fclose, (stream), register FILE *stream)
/* Close the system file descriptor. */
if (stream->__io_funcs.__close != NULL)
status = (*stream->__io_funcs.__close)(stream->__cookie);
- else if (!stream->__seen)
+ else if (!stream->__seen
&& stream->__cookie != NULL
)
status = __stdio_close(stream->__cookie);
else
status = 0;