diff options
Diffstat (limited to 'backends/alsa/alsa-switch-option.c')
-rw-r--r-- | backends/alsa/alsa-switch-option.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/alsa/alsa-switch-option.c b/backends/alsa/alsa-switch-option.c index 1800df2..81326ce 100644 --- a/backends/alsa/alsa-switch-option.c +++ b/backends/alsa/alsa-switch-option.c @@ -54,6 +54,9 @@ alsa_switch_option_new (const gchar *name, { AlsaSwitchOption *option; + g_return_val_if_fail (name != NULL, NULL); + g_return_val_if_fail (label != NULL, NULL); + option = g_object_new (ALSA_TYPE_SWITCH_OPTION, "name", name, "label", label, |