From: Takashi Sakamoto Date: Fri, 12 Jun 2020 13:24:02 +0000 (+0900) Subject: ctl: elem_info: fix SIGSEGV due to missing sentinel for arguments of g_object_new() X-Git-Tag: v0.1.0~65 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=b8ca9c7c1f15cd8e1662f67ddcea2037a26a560d;p=alsa-gobject.git ctl: elem_info: fix SIGSEGV due to missing sentinel for arguments of g_object_new() Fixes: 5cc31d27e702 ("ctl: elem_info: become concrete class instead of abstract class") Signed-off-by: Takashi Sakamoto --- diff --git a/src/ctl/elem-info.c b/src/ctl/elem-info.c index 914cd64..4576443 100644 --- a/src/ctl/elem-info.c +++ b/src/ctl/elem-info.c @@ -177,7 +177,7 @@ ALSACtlElemInfo *alsactl_elem_info_new(ALSACtlElemType elem_type, GError **error return NULL; } - return g_object_new(ALSACTL_TYPE_ELEM_INFO, "type", elem_type); + return g_object_new(ALSACTL_TYPE_ELEM_INFO, "type", elem_type, NULL); } /**