From 4c71ebb37dc935cb3063bfc96d8ee6f96b579987 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 24 Oct 2020 09:53:57 -0700 Subject: [PATCH] fix missing bracketing in a macro expansion None of the calls to this macro were passing in multiple tokens, so this issue was latent. This refactor is for the safety of any future introduced calls to EMPTY(). --- lib/cgraph/write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cgraph/write.c b/lib/cgraph/write.c index e3d45cf3c..153832ec8 100644 --- a/lib/cgraph/write.c +++ b/lib/cgraph/write.c @@ -16,7 +16,7 @@ #include #include -#define EMPTY(s) ((s == 0) || (s)[0] == '\0') +#define EMPTY(s) (((s) == 0) || (s)[0] == '\0') #define MAX(a,b) ((a)>(b)?(a):(b)) #define CHKRV(v) {if ((v) == EOF) return EOF;} -- 2.40.0