From 9772797c31ebed2417b42a9389caae1b16847e86 Mon Sep 17 00:00:00 2001 From: Michal Ratajsky Date: Mon, 4 Jan 2016 20:31:14 +0100 Subject: Improve error checking in many places --- backends/oss/oss-switch-option.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backends/oss/oss-switch-option.c') diff --git a/backends/oss/oss-switch-option.c b/backends/oss/oss-switch-option.c index 862133d..544f321 100644 --- a/backends/oss/oss-switch-option.c +++ b/backends/oss/oss-switch-option.c @@ -53,6 +53,9 @@ oss_switch_option_new (const gchar *name, { OssSwitchOption *option; + g_return_val_if_fail (name != NULL, NULL); + g_return_val_if_fail (label != NULL, NULL); + option = g_object_new (OSS_TYPE_SWITCH_OPTION, "name", name, "label", label, -- cgit v1.2.1