Author: dannym
Date: 2006-07-19 19:48:07 +0000 (Wed, 19 Jul 2006)
New Revision: 22482

Modified:
   xfce4-mixer/trunk/lib/vc_oss.c
Log:
do not crash when RecSelect value is NULL

Modified: xfce4-mixer/trunk/lib/vc_oss.c
===================================================================
--- xfce4-mixer/trunk/lib/vc_oss.c      2006-07-18 20:55:16 UTC (rev 22481)
+++ xfce4-mixer/trunk/lib/vc_oss.c      2006-07-19 19:48:07 UTC (rev 22482)
@@ -401,7 +401,12 @@
        int     xrecsrc;
        
        if (has_recselector && g_str_equal (which, NAME_RECSELECTOR)) {
-               i = find_control (v);
+               if (v == NULL) {
+                       i = -1;
+               } else {
+                       i = find_control (v);
+               }
+
                if (i == -1) {
                  g_warning ("oss: could not find control that the new 
recording source refers to. Not setting it.");
                  return;

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to