summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2008-06-25 01:33:36 +0200
committerLennart Poettering <lennart@poettering.net>2008-06-25 01:33:36 +0200
commit5da54ef8eac90ae74ff75a23e3189a594b54424d (patch)
tree1795b2d464331e41e8417bfbdee3d10becaaebc3
parentda2c352f04de5b9c4f071a0f0ad57cb2cdd51eff (diff)
add a few missing asserts
-rw-r--r--src/alsa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/alsa.c b/src/alsa.c
index a1dea98..15c34ed 100644
--- a/src/alsa.c
+++ b/src/alsa.c
@@ -180,6 +180,9 @@ int driver_change_props(ca_context *c, ca_proplist *changed, ca_proplist *merged
}
int driver_cache(ca_context *c, ca_proplist *proplist) {
+ ca_return_val_if_fail(c, CA_ERROR_INVALID);
+ ca_return_val_if_fail(proplist, CA_ERROR_INVALID);
+
return CA_ERROR_NOTSUPPORTED;
}