mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:26:05 +00:00 
			
		
		
		
	Merge branch 'obsd-master'
This commit is contained in:
		
							
								
								
									
										4
									
								
								file.c
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								file.c
									
									
									
									
									
								
							@@ -585,6 +585,8 @@ file_write_open(struct client_files *files, struct tmuxpeer *peer,
 | 
			
		||||
 | 
			
		||||
	cf->event = bufferevent_new(cf->fd, NULL, file_write_callback,
 | 
			
		||||
	    file_write_error_callback, cf);
 | 
			
		||||
	if (cf->event == NULL)
 | 
			
		||||
		fatalx("out of memory");
 | 
			
		||||
	bufferevent_enable(cf->event, EV_WRITE);
 | 
			
		||||
	goto reply;
 | 
			
		||||
 | 
			
		||||
@@ -744,6 +746,8 @@ file_read_open(struct client_files *files, struct tmuxpeer *peer,
 | 
			
		||||
 | 
			
		||||
	cf->event = bufferevent_new(cf->fd, file_read_callback, NULL,
 | 
			
		||||
	    file_read_error_callback, cf);
 | 
			
		||||
	if (cf->event == NULL)
 | 
			
		||||
		fatalx("out of memory");
 | 
			
		||||
	bufferevent_enable(cf->event, EV_READ);
 | 
			
		||||
	return;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user