Skip to content

Commit

Permalink
Missing else resulted in incorrect and confusing error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
wb2osz committed Jan 4, 2018
1 parent 26599ec commit fa7d3bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
t = split(NULL,0);
if (t == NULL) {
text_color_set(DW_COLOR_ERROR);
dw_printf ("Config file line %d: Missing serial port name for %s command.\n",
dw_printf ("Config file line %d: Missing output control device for %s command.\n",
line, otname);
continue;
}
Expand Down Expand Up @@ -1761,7 +1761,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,

#endif
}
if (strcasecmp(t, "CM108") == 0) {
else if (strcasecmp(t, "CM108") == 0) {

/* CM108 - GPIO of USB sound card. case, Linux only. */

Expand Down

0 comments on commit fa7d3bc

Please sign in to comment.