summaryrefslogtreecommitdiffstats
path: root/src/modules/module-hal-detect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/module-hal-detect.c')
-rw-r--r--src/modules/module-hal-detect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-hal-detect.c b/src/modules/module-hal-detect.c
index 27c39221..dd30045e 100644
--- a/src/modules/module-hal-detect.c
+++ b/src/modules/module-hal-detect.c
@@ -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;
}