set 0 to file->flags by default
This commit is contained in:
		
							parent
							
								
									94b2a68f7f
								
							
						
					
					
						commit
						73ad915fcf
					
				| 
						 | 
					@ -104,6 +104,7 @@ pic_funopen(void *cookie,
 | 
				
			||||||
  if (! file) {
 | 
					  if (! file) {
 | 
				
			||||||
    return NULL;
 | 
					    return NULL;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  file->flags = 0;
 | 
				
			||||||
  /* no buffering at the beginning */
 | 
					  /* no buffering at the beginning */
 | 
				
			||||||
  file->buf = NULL;
 | 
					  file->buf = NULL;
 | 
				
			||||||
  file->mode = _IONBF;
 | 
					  file->mode = _IONBF;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue