Skip to content

Commit ec35e58

Browse files
committed
Correct conditional operator precedence
1 parent 56a4c5d commit ec35e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: config.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ void config_init (char *fname, struct audio_s *p_audio_config,
12331233
/* Later, we check for valid letters and no more than one letter if + specified. */
12341234

12351235
for (pc = t; *pc != '\0'; pc++) {
1236-
if ( ! isalpha(*pc) && ! *pc == '+') {
1236+
if ( ! isalpha(*pc) && ! (*pc == '+')) {
12371237
text_color_set(DW_COLOR_ERROR);
12381238
dw_printf ("Line %d: Demodulator type can only contain letters and + character.\n", line);
12391239
}

0 commit comments

Comments
 (0)