Skip to content

Commit fa7d3bc

Browse files
committed
Missing else resulted in incorrect and confusing error message.
1 parent 26599ec commit fa7d3bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

config.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
16511651
t = split(NULL,0);
16521652
if (t == NULL) {
16531653
text_color_set(DW_COLOR_ERROR);
1654-
dw_printf ("Config file line %d: Missing serial port name for %s command.\n",
1654+
dw_printf ("Config file line %d: Missing output control device for %s command.\n",
16551655
line, otname);
16561656
continue;
16571657
}
@@ -1761,7 +1761,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
17611761

17621762
#endif
17631763
}
1764-
if (strcasecmp(t, "CM108") == 0) {
1764+
else if (strcasecmp(t, "CM108") == 0) {
17651765

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

0 commit comments

Comments
 (0)