]> code.delx.au - pulseaudio/blobdiff - src/pulsecore/cli-command.c
card: Ensure that there's always at least one profile.
[pulseaudio] / src / pulsecore / cli-command.c
index a772e1e06404708730470efafd045b8dcd9cd452..130185a6f73fc2a8656589c833c53def252bebb1 100644 (file)
@@ -1840,8 +1840,7 @@ static int pa_cli_command_dump(pa_core *c, pa_tokenizer *t, pa_strbuf *buf, pa_b
             nl = TRUE;
         }
 
-        if (card->active_profile)
-            pa_strbuf_printf(buf, "set-card-profile %s %s\n", card->name, card->active_profile->name);
+        pa_strbuf_printf(buf, "set-card-profile %s %s\n", card->name, card->active_profile->name);
     }
 
     nl = FALSE;