Browse Source

fix operator precedence

master
Felix von Leitner 5 years ago
parent
commit
3c20566f55
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      ent.c

+ 2
- 2
ent.c View File

@ -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,'[');


Loading…
Cancel
Save