From b8ca9c7c1f15cd8e1662f67ddcea2037a26a560d Mon Sep 17 00:00:00 2001 From: Takashi Sakamoto Date: Fri, 12 Jun 2020 22:24:02 +0900 Subject: [PATCH] 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 --- src/ctl/elem-info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } /** -- 2.47.3