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:
Lennart Poettering 2006-08-11 15:05:02 +00:00
parent 7ee7a23408
commit 59f1a67cb5

View file

@ -232,7 +232,7 @@ static dbus_bool_t hal_device_add(struct userdata *u, const char *udi,
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;
}