]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
ctl: elem_info: fix SIGSEGV due to missing sentinel for arguments of g_object_new()
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 12 Jun 2020 13:24:02 +0000 (22:24 +0900)
committer坂本 貴史 <o-takashi@sakamocchi.jp>
Fri, 12 Jun 2020 22:49:01 +0000 (07:49 +0900)
Fixes: 5cc31d27e702 ("ctl: elem_info: become concrete class instead of abstract class")
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/ctl/elem-info.c

index 914cd642174370c275efeb89bfc972413a778e9f..4576443622dd0c4ebf3bd35d8900955426fc4ccc 100644 (file)
@@ -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);
 }
 
 /**