From ec35e5825a5a2303fdcada4b9eb14bd7ad52440d Mon Sep 17 00:00:00 2001 From: "Daniel M. Weeks" Date: Fri, 22 Jan 2016 22:15:15 -0500 Subject: [PATCH] Correct conditional operator precedence --- config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.c b/config.c index cb54011..97865f6 100644 --- a/config.c +++ b/config.c @@ -1233,7 +1233,7 @@ void config_init (char *fname, struct audio_s *p_audio_config, /* Later, we check for valid letters and no more than one letter if + specified. */ for (pc = t; *pc != '\0'; pc++) { - if ( ! isalpha(*pc) && ! *pc == '+') { + if ( ! isalpha(*pc) && ! (*pc == '+')) { text_color_set(DW_COLOR_ERROR); dw_printf ("Line %d: Demodulator type can only contain letters and + character.\n", line); }