fix operator precedence

master
leitner 9 years ago
parent 80a9933ff1
commit 9b2377c4be

@ -158,12 +158,12 @@ int main() {
size_t ul; size_t ul;
if (!isspace(buf[0])) continue; if (!isspace(buf[0])) continue;
for (s=buf; *s && *s!='"'; ++s) ; // skip whitespace for (s=buf; *s && *s!='"'; ++s) ; // skip whitespace
if (!*s=='"') continue; if (!(*s=='"')) continue;
++s; ++s;
entity=s; entity=s;
if (*entity!='&') continue; ++entity; ++s; if (*entity!='&') continue; ++entity; ++s;
for (; *s && *s!='"'; ++s) ; // skip to end of entity for (; *s && *s!='"'; ++s) ; // skip to end of entity
if (!*s=='"') continue; if (!(*s=='"')) continue;
if (s[-1]!=';') continue; if (s[-1]!=';') continue;
s[-1]=0; ++s; s[-1]=0; ++s;
s=strchr(s,'['); s=strchr(s,'[');

Loading…
Cancel
Save