[pulseaudio-commits] r1192 - /trunk/src/modules/module-hal-detect.c

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Fri Aug 11 08:05:04 PDT 2006


Author: lennart
Date: Fri Aug 11 17:05:02 2006
New Revision: 1192

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=1192&root=pulseaudio&view=rev
Log:
use the copied udi string as hash key for the device table, because the temporary one is freed when the function exits

Modified:
    trunk/src/modules/module-hal-detect.c

Modified: trunk/src/modules/module-hal-detect.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/modules/module-hal-detect.c?rev=1192&root=pulseaudio&r1=1191&r2=1192&view=diff
==============================================================================
--- trunk/src/modules/module-hal-detect.c (original)
+++ trunk/src/modules/module-hal-detect.c Fri Aug 11 17:05:02 2006
@@ -232,7 +232,7 @@
     d->udi = pa_xstrdup(udi);
     d->index = m->index;
 
-    pa_hashmap_put(u->devices, udi, d);
+    pa_hashmap_put(u->devices, d->udi, d);
 
     return TRUE;
 }




More information about the pulseaudio-commits mailing list