[pulseaudio-discuss] [PATCH 4/5] stream-restore: Add a missing pa_xnew0() call in handle_add_entry().
Tanu Kaskinen
ext-tanu.kaskinen at nokia.com
Thu Dec 3 05:32:23 PST 2009
---
src/modules/module-stream-restore.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/modules/module-stream-restore.c b/src/modules/module-stream-restore.c
index ce92362..a1273fe 100644
--- a/src/modules/module-stream-restore.c
+++ b/src/modules/module-stream-restore.c
@@ -649,6 +649,7 @@ static void handle_add_entry(DBusConnection *conn, DBusMessage *msg, void *userd
dbus_entry = dbus_entry_new(u, name);
pa_assert_se(pa_hashmap_put(u->dbus_entries, dbus_entry->entry_name, dbus_entry) == 0);
+ e = pa_xnew0(struct entry, 1);
e->muted_valid = TRUE;
e->volume_valid = !!map.channels;
e->device_valid = !!device[0];
More information about the pulseaudio-discuss
mailing list