public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
132ed11
)
bug fix
author
ceriel
<none@none>
Wed, 28 Jan 1987 14:38:38 +0000
(14:38 +0000)
committer
ceriel
<none@none>
Wed, 28 Jan 1987 14:38:38 +0000
(14:38 +0000)
lang/cem/libcc/stdio/fflush.c
patch
|
blob
|
history
diff --git
a/lang/cem/libcc/stdio/fflush.c
b/lang/cem/libcc/stdio/fflush.c
index
9a271fb
..
103ae85
100644
(file)
--- a/
lang/cem/libcc/stdio/fflush.c
+++ b/
lang/cem/libcc/stdio/fflush.c
@@
-6,7
+6,9
@@
FILE *iop;
{
int count, c1;
- if ( io_testflag(iop,IO_UNBUFF) || !io_testflag(iop,IO_WRITEMODE) )
+ if (!iop->_buf ||
+ io_testflag(iop,IO_UNBUFF) ||
+ !io_testflag(iop,IO_WRITEMODE) )
return(0);
count = BUFSIZ - iop->_count;