From 71ce195d3bb2cc1f88210fd7e22495bc38d2f72d Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 7 Jun 2009 00:40:48 +0200 Subject: [PATCH] udev: properly initialize userdata to 0 --- src/modules/module-udev-detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/module-udev-detect.c b/src/modules/module-udev-detect.c index b667cb4..1ad6fa2 100644 --- a/src/modules/module-udev-detect.c +++ b/src/modules/module-udev-detect.c @@ -340,7 +340,7 @@ int pa__init(pa_module *m) { goto fail; } - m->userdata = u = pa_xnew(struct userdata, 1); + m->userdata = u = pa_xnew0(struct userdata, 1); u->core = m->core; u->devices = pa_hashmap_new(pa_idxset_string_hash_func, pa_idxset_string_compare_func); u->use_tsched = TRUE; -- 2.7.4