mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										9
									
								
								format.c
									
									
									
									
									
								
							
							
						
						
									
										9
									
								
								format.c
									
									
									
									
									
								
							@@ -191,10 +191,15 @@ static void
 | 
				
			|||||||
format_job_update(struct job *job)
 | 
					format_job_update(struct job *job)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	struct format_job	*fj = job->data;
 | 
						struct format_job	*fj = job->data;
 | 
				
			||||||
	char			*line;
 | 
						struct evbuffer		*evb = job->event->input;
 | 
				
			||||||
 | 
						char			*line = NULL, *next;
 | 
				
			||||||
	time_t			 t;
 | 
						time_t			 t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((line = evbuffer_readline(job->event->input)) == NULL)
 | 
						while ((next = evbuffer_readline(evb)) != NULL) {
 | 
				
			||||||
 | 
							free(line);
 | 
				
			||||||
 | 
							line = next;
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
 | 
						if (line == NULL)
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
	fj->updated = 1;
 | 
						fj->updated = 1;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user