[Xfce4-commits] [apps/xfce4-volumed-pulse] 45/62: fix checks

noreply at xfce.org noreply at xfce.org
Thu Sep 8 10:33:07 CEST 2016


This is an automated email from the git hooks/post-receive script.

ochosi pushed a commit to branch master
in repository apps/xfce4-volumed-pulse.

commit feb4dfca4352d64bd6e384d423318fb58fdfde90
Author: Lionel Le Folgoc <lionel at lefolgoc.net>
Date:   Fri May 25 16:47:01 2012 +0200

    fix checks
---
 src/xvd_pulse.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/xvd_pulse.c b/src/xvd_pulse.c
index e5044f8..13b396e 100644
--- a/src/xvd_pulse.c
+++ b/src/xvd_pulse.c
@@ -120,6 +120,7 @@ xvd_update_volume (XvdInstance        *i,
   if (i->sink_index == PA_INVALID_INDEX)
     {
       g_warning ("xvd_update_volume: undefined sink");
+      return;
     }
 
   /* backup */
@@ -177,6 +178,7 @@ xvd_toggle_mute (XvdInstance *i)
   if (i->sink_index == PA_INVALID_INDEX)
     {
       g_warning ("xvd_toggle_mute: undefined sink");
+      return;
     }
 
   /* backup existing mute and update */
@@ -542,9 +544,9 @@ xvd_update_sink_callback (pa_context         *c,
     return;
   else
     {
-      if (!userdata || !info)
+      if (!c || !userdata || !info)
         {
-          g_warning ("xvd_default_sink_info_callback: invalid argument");
+          g_warning ("xvd_update_sink_callback: invalid argument");
           return;
         }
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list