Changeset 236


Ignore:
Timestamp:
12/11/06 14:20:29 (8 years ago)
Author:
xi
Message:

Force a new line at the end of the input stream even if there are no a new line character. This fixes a nasty bug when libyaml hangs on documents like [[[[. Thanks ciaranm for reporting the bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/trunk/src/scanner.c

    r214 r236  
    13251325    yaml_token_t token; 
    13261326 
     1327    /* Force new line. */ 
     1328 
     1329    if (parser->mark.column != 0) { 
     1330        parser->mark.column = 0; 
     1331        parser->mark.line ++; 
     1332    } 
     1333 
    13271334    /* Reset the indentation level. */ 
    13281335 
Note: See TracChangeset for help on using the changeset viewer.