fixed freopen() bug by deleting some code
This commit is contained in:
		
							parent
							
								
									bc137646df
								
							
						
					
					
						commit
						cd1f6c38a4
					
				
					 1 changed files with 0 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -90,11 +90,6 @@ freopen(const char *name, const char *mode, FILE *stream)
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	stream->_count = 0;
 | 
			
		||||
	if (stream->_buf && !(flags & _IONBF) && (flags & _IOWRITE)) 
 | 
			
		||||
		if (flags & _IOLBF)
 | 
			
		||||
			stream->_count  = 0;
 | 
			
		||||
		else	stream->_count = stream->_bufsiz;
 | 
			
		||||
 | 
			
		||||
	stream->_fd = fd;
 | 
			
		||||
	stream->_flags = flags;
 | 
			
		||||
	return stream;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue