mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	resource: fix errno printout in error message
res holds the real error code at this point in the code, errno needs to be set so that %m can work below
This commit is contained in:
		
							parent
							
								
									2ae621c975
								
							
						
					
					
						commit
						1c86ed8263
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -72,7 +72,7 @@ struct pw_resource *pw_resource_new(struct pw_impl_client *client,
 | 
			
		|||
	}
 | 
			
		||||
 | 
			
		||||
	if ((res = pw_map_insert_at(&client->objects, id, this)) < 0) {
 | 
			
		||||
		res = -errno;
 | 
			
		||||
		errno = -res;
 | 
			
		||||
		pw_log_error(NAME" %p: can't add id %u for client %p: %m",
 | 
			
		||||
			this, id, client);
 | 
			
		||||
		goto error_clean;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue