mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	use the copied udi string as hash key for the device table, because the temporary one is freed when the function exits
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1192 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									7ee7a23408
								
							
						
					
					
						commit
						59f1a67cb5
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -232,7 +232,7 @@ static dbus_bool_t hal_device_add(struct userdata *u, const char *udi,
 | 
				
			||||||
    d->udi = pa_xstrdup(udi);
 | 
					    d->udi = pa_xstrdup(udi);
 | 
				
			||||||
    d->index = m->index;
 | 
					    d->index = m->index;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    pa_hashmap_put(u->devices, udi, d);
 | 
					    pa_hashmap_put(u->devices, d->udi, d);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return TRUE;
 | 
					    return TRUE;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue