[pulseaudio-discuss] [PATCH v2 19/19] modules: Add assertion in equalizer-sink

Peter Meerwald pmeerw at pmeerw.net
Thu Dec 19 03:11:48 PST 2013


From: Peter Meerwald <p.meerwald at bct-electronic.com>

discovered by coverity

Signed-off-by: Peter Meerwald <pmeerw at pmeerw.net>
---
 src/modules/module-equalizer-sink.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/module-equalizer-sink.c b/src/modules/module-equalizer-sink.c
index 22043f0..bcaaecd 100644
--- a/src/modules/module-equalizer-sink.c
+++ b/src/modules/module-equalizer-sink.c
@@ -1585,7 +1585,7 @@ void dbus_init(struct userdata *u) {
     u->dbus_protocol=pa_dbus_protocol_get(u->sink->core);
     u->dbus_path=pa_sprintf_malloc("/org/pulseaudio/core1/sink%d", u->sink->index);
 
-    pa_dbus_protocol_add_interface(u->dbus_protocol, u->dbus_path, &equalizer_info, u);
+    pa_assert_se(pa_dbus_protocol_add_interface(u->dbus_protocol, u->dbus_path, &equalizer_info, u) >= 0);
     sink_list = pa_shared_get(u->sink->core, SINKLIST);
     u->database = pa_shared_get(u->sink->core, EQDB);
     if (sink_list == NULL) {
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list