[pulseaudio-discuss] [PATCH 4/8] desktop-notifications: Corrected an assertion, pa_shared_remove returns 0 on success.

Ștefan Săftescu stefan.saftescu at gmail.com
Thu Jul 12 09:10:25 PDT 2012


---
 src/modules/notifications/notification-manager.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/notifications/notification-manager.c b/src/modules/notifications/notification-manager.c
index 9a2aa0c..6c1d6c7 100644
--- a/src/modules/notifications/notification-manager.c
+++ b/src/modules/notifications/notification-manager.c
@@ -61,7 +61,7 @@ static pa_ui_notification_manager* pa_ui_notification_manager_new(pa_core *c) {
 static void pa_ui_notification_manager_free(pa_ui_notification_manager *m) {
     pa_assert(m);
 
-    pa_assert_se(pa_shared_remove(m->core, "ui-notification-manager"));
+    pa_assert_se(pa_shared_remove(m->core, "ui-notification-manager") >= 0);
 
     pa_xfree(m);
 }
-- 
1.7.10.4



More information about the pulseaudio-discuss mailing list