mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Do not check if client is dead if it is NULL.
This commit is contained in:
		
							
								
								
									
										2
									
								
								file.c
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								file.c
									
									
									
									
									
								
							@@ -88,7 +88,7 @@ file_fire_done_cb(__unused int fd, __unused short events, void *arg)
 | 
			
		||||
	struct client_file	*cf = arg;
 | 
			
		||||
	struct client		*c = cf->c;
 | 
			
		||||
 | 
			
		||||
	if (cf->cb != NULL && (~c->flags & CLIENT_DEAD))
 | 
			
		||||
	if (cf->cb != NULL && (c == NULL || (~c->flags & CLIENT_DEAD)))
 | 
			
		||||
		cf->cb(c, cf->path, cf->error, 1, cf->buffer, cf->data);
 | 
			
		||||
	file_free(cf);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user