pa_xnew cannot fail -- that's what the x is in the name

This commit is contained in:
Lennart Poettering 2009-03-04 02:52:11 +01:00
parent 946d07211b
commit c8abe64040

View file

@ -821,9 +821,7 @@ int pa__init(pa_module *m) {
goto fail; goto fail;
} }
if (!(u = pa_xnew0(struct userdata, 1))) u = pa_xnew0(struct userdata, 1);
goto fail;
u->sample_counter_lock = pa_mutex_new(FALSE, FALSE); u->sample_counter_lock = pa_mutex_new(FALSE, FALSE);
u->written_bytes_lock = pa_mutex_new(FALSE, FALSE); u->written_bytes_lock = pa_mutex_new(FALSE, FALSE);