mirror of
				https://gitlab.com/sortix/sortix.git
				synced 2023-02-13 20:55:38 -05:00 
			
		
		
		
	Silence maybe initialized warning in pager.
This commit is contained in:
		
							parent
							
								
									bb70eef85b
								
							
						
					
					
						commit
						e76d4a90c5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -298,7 +298,7 @@ void pager_push_fd(struct pager* pager, int fd, const char* fdpath)
 | 
				
			||||||
	if ( !pager->out_fd_tty )
 | 
						if ( !pager->out_fd_tty )
 | 
				
			||||||
		return pager_simple_output_fd(pager, fd, fdpath);
 | 
							return pager_simple_output_fd(pager, fd, fdpath);
 | 
				
			||||||
	unsigned char buffer[4096];
 | 
						unsigned char buffer[4096];
 | 
				
			||||||
	ssize_t in_amount;
 | 
						ssize_t in_amount = 0;
 | 
				
			||||||
	while ( !pager->quiting &&
 | 
						while ( !pager->quiting &&
 | 
				
			||||||
	        0 < (in_amount = read(fd, buffer, sizeof(buffer))) )
 | 
						        0 < (in_amount = read(fd, buffer, sizeof(buffer))) )
 | 
				
			||||||
	{
 | 
						{
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue