mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
pulsecore: Fix assert in pa_msgobject creation
Allows for creation of derived types that don't have any other fields.
This commit is contained in:
parent
126a80f3b9
commit
1b0136be44
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ PA_DEFINE_PUBLIC_CLASS(pa_msgobject, pa_object);
|
|||
pa_msgobject *pa_msgobject_new_internal(size_t size, const char *type_id, pa_bool_t (*check_type)(const char *type_name)) {
|
||||
pa_msgobject *o;
|
||||
|
||||
pa_assert(size > sizeof(pa_msgobject));
|
||||
pa_assert(size >= sizeof(pa_msgobject));
|
||||
pa_assert(type_id);
|
||||
|
||||
if (!check_type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue