Changeset 56 for trunk/src


Ignore:
Timestamp:
Feb 21, 2008, 3:41:38 PM (11 years ago)
Author:
cameron
Message:

content_start_pos if no XML/text decl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/xmlbuffer.c

    r53 r56  
    381381        int decl_start = AbsPos();
    382382        // It is possible that there is no XML declaration.
    383         if (!at_XmlDecl_start<C>(cur())) return;
     383        if (!at_XmlDecl_start<C>(cur())) {
     384                content_start_pos = AbsPos();
     385                return;
     386        }
    384387        // Otherwise, the XML declaration exists and must have
    385388        // at least version information.
     
    455458        int decl_start = AbsPos();
    456459        // It is possible that there is no XML declaration.
    457         if (!at_XmlDecl_start<C>(cur())) return;
     460        if (!at_XmlDecl_start<C>(cur())) {
     461                content_start_pos = AbsPos();
     462                return;
     463        }
    458464        // Otherwise, the text declaration exists and may have
    459465        // version information.
Note: See TracChangeset for help on using the changeset viewer.