Ignore:
Timestamp:
02/23/09 14:59:19 (5 years ago)
Author:
xi
Message:

Fixed non-ANSI initializations (fixes #115).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libyaml/branches/stable/src/scanner.c

    r273 r346  
    11191119    if (parser->simple_key_allowed) 
    11201120    { 
    1121         yaml_simple_key_t simple_key = { 1, required, 
    1122             parser->tokens_parsed + parser->tokens.tail - parser->tokens.head, 
    1123             { 0, 0, 0 } }; 
     1121        yaml_simple_key_t simple_key; 
     1122        simple_key.possible = 1; 
     1123        simple_key.required = required; 
     1124        simple_key.token_number =  
     1125            parser->tokens_parsed + parser->tokens.tail - parser->tokens.head; 
    11241126        simple_key.mark = parser->mark; 
    11251127 
Note: See TracChangeset for help on using the changeset viewer.