Bail out quicker on error
commit2900cded7797ad712aa422107caebeb7340d7fcd
authorNeil Mitchell <ndmitchell@gmail.com>
dateWed 14 Dec 2016, 21:06 (10 years ago)
parentafe799f
cbits/hexml.c+1−1
@@ -367,7 +367,7 @@ static inline str parse_attrval(document* d)
367367static inline str parse_attributes(document* d)
368368{
369369 int start = d->attrs.used;
370− for (;;)
370+ while (d->error_message == NULL)
371371 {
372372 trim(d);
373373 str name = parse_name(d);