summaryrefslogtreecommitdiff
path: root/backends/oss/oss-switch-option.c
diff options
context:
space:
mode:
Diffstat (limited to 'backends/oss/oss-switch-option.c')
-rw-r--r--backends/oss/oss-switch-option.c3
1 files changed, 3 insertions, 0 deletions
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,