card,stream-restore: minor cleanups

This commit is contained in:
Lennart Poettering 2009-06-18 00:59:33 +02:00
parent 0e4ac56afc
commit 4951e08031
2 changed files with 6 additions and 12 deletions

View file

@ -223,11 +223,9 @@ 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->module = m;
u->save_time_event = NULL;
u->database = NULL;
u->subscription = pa_subscription_new(m->core, PA_SUBSCRIPTION_MASK_CARD, subscribe_callback, u);