From 9b2377c4bedf15dde12e6b34e34d2c6bc8dfe9fb Mon Sep 17 00:00:00 2001 From: leitner Date: Tue, 15 Dec 2015 14:11:35 +0000 Subject: [PATCH] fix operator precedence --- ent.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ent.c b/ent.c index 56d585c..d77195f 100644 --- a/ent.c +++ b/ent.c @@ -158,12 +158,12 @@ int main() { size_t ul; if (!isspace(buf[0])) continue; for (s=buf; *s && *s!='"'; ++s) ; // skip whitespace - if (!*s=='"') continue; + if (!(*s=='"')) continue; ++s; entity=s; if (*entity!='&') continue; ++entity; ++s; for (; *s && *s!='"'; ++s) ; // skip to end of entity - if (!*s=='"') continue; + if (!(*s=='"')) continue; if (s[-1]!=';') continue; s[-1]=0; ++s; s=strchr(s,'[');