Revision ea357cc5

View differences:

src/vm/VirtualMachine.cc
2128 2128
    if ( xpath(last_seq,"/VM/HISTORY_RECORDS/HISTORY/SEQ", -1) == 0 && 
2129 2129
            last_seq != -1 )
2130 2130
    {
2131
        history_records.resize(last_seq + 1);
2132

  
2133
        for (int i=0; i <= last_seq; ++i)
2134
        {
2135
            history_records[i] = 0;
2136
        }
2137

  
2131 2138
        history = new History(oid, last_seq);
2132 2139

  
2133
        history_records.resize(history->seq + 1);
2134
        history_records[history->seq] = history;
2140
        history_records[last_seq] = history;
2135 2141
    }
2136 2142

  
2137 2143
    // -------------------------------------------------------------------------

Also available in: Unified diff