View | Details | Raw Unified | Return to bug 12852
Collapse All | Expand All

(-)/usr/src/lib/libc/stdio/refill.c (+1 lines)
Lines 82-87 Link Here
82
	if ((fp->_flags & __SRD) == 0) {
82
	if ((fp->_flags & __SRD) == 0) {
83
		if ((fp->_flags & __SRW) == 0) {
83
		if ((fp->_flags & __SRW) == 0) {
84
			errno = EBADF;
84
			errno = EBADF;
85
			fp->_flags |= __SERR;
85
			return (EOF);
86
			return (EOF);
86
		}
87
		}
87
		/* switch to reading */
88
		/* switch to reading */

Return to bug 12852