Changeset 265 for trunk/lib/Stats.cc


Ignore:
Timestamp:
May 1, 2007, 2:27:59 PM (14 years ago)
Author:
Peter Johansson
Message:

fixes #170

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r244 r265  
    9292
    9393    std::vector<u_int>* total = &(total_[user]);
     94    assert(total);
    9495    if (total->size() < rev+1){
    9596      total->reserve(revision_ + 1);
     
    101102
    102103    std::vector<u_int>* code = &(code_[user]);
     104    assert(code);
    103105    if (code->size() < rev+1){
    104106      code->reserve(revision_ + 1);
     
    113115
    114116    std::vector<u_int>* comments = &(comments_[user]);
     117    assert(comments);
    115118    if (comments->size() < rev+1){
    116119      comments->reserve(revision_ + 1);
     
    125128
    126129    std::vector<u_int>* empty = &(empty_[user]);
     130    assert(empty);
    127131    if (empty->size() < rev+1){
    128132      empty->reserve(revision_ + 1);
     
    145149    SVNblame svn_blame(path);
    146150    while (const SVNblame::blame_information * bi=svn_blame.next()) {
     151      assert(bi);
    147152      // to handle symbolic links
    148153      if (count==parser.type().end())
    149154        add(bi->author, bi->revision, Parser::empty);
    150       else
     155      else {
    151156        add(bi->author, bi->revision, *count);
    152       ++count;
     157        ++count;
     158      }
    153159    }
    154160   
Note: See TracChangeset for help on using the changeset viewer.