summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 18:53:30 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-06 18:53:30 +0100
commitdccf124ff35976609f4dc9a56ac3d49aa7a7b029 (patch)
treee34bd7a7221687d2bd186683de5b08fbde85cb02 /src/modules
parentb30daea12c75995f6a9c34c5a000b0c3207f9c45 (diff)
mixer backend - fix null checks to cover all uses
fix CID 1403937
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/mixer/gadget/backend.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/mixer/gadget/backend.c b/src/modules/mixer/gadget/backend.c
index 89c2e3d..52e44e0 100644
--- a/src/modules/mixer/gadget/backend.c
+++ b/src/modules/mixer/gadget/backend.c
@@ -1325,9 +1325,12 @@ backend_sink_default_set(const Emix_Sink *s)
1325{ 1325{
1326 if (_sink_default != s) 1326 if (_sink_default != s)
1327 { 1327 {
1328 DBG("Sink default set %s", s->name);
1329 _sink_default = s; 1328 _sink_default = s;
1330 if (s) emix_config_save_sink_set(s->name); 1329 if (s)
1330 {
1331 DBG("Sink default set %s", s->name);
1332 emix_config_save_sink_set(s->name);
1333 }
1331 _backend_changed(); 1334 _backend_changed();
1332 } 1335 }
1333} 1336}