Changeset 2116 for stable


Ignore:
Timestamp:
Feb 10, 2015 11:23:51 AM (5 years ago)
Author:
forrest
Message:

fix uninitialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • stable/1.16/Clp/src/ClpFactorization.cpp

    r2078 r2116  
    11491149     goDenseThreshold_ = -1;
    11501150     goSmallThreshold_ = -1;
     1151     memset(&shortestAverage_,0,3*(sizeof(double)+sizeof(int)));
    11511152}
    11521153
     
    12261227     factorization_instrument(1);
    12271228#endif
     1229     memcpy(&shortestAverage_,&rhs.shortestAverage_,3*(sizeof(double)+sizeof(int)));
    12281230}
    12291231
     
    12461248     goSmallThreshold_ = -1;
    12471249     assert (!coinFactorizationA_ || !coinFactorizationB_);
     1250     memset(&shortestAverage_,0,3*(sizeof(double)+sizeof(int)));
    12481251}
    12491252
     
    12671270#endif
    12681271     assert (!coinFactorizationA_ || !coinFactorizationB_);
     1272     memset(&shortestAverage_,0,3*(sizeof(double)+sizeof(int)));
    12691273}
    12701274
     
    13051309          goDenseThreshold_ = rhs.goDenseThreshold_;
    13061310          goSmallThreshold_ = rhs.goSmallThreshold_;
     1311          memcpy(&shortestAverage_,&rhs.shortestAverage_,3*(sizeof(double)+sizeof(int)));
    13071312          if (rhs.coinFactorizationA_) {
    13081313               if (coinFactorizationA_)
Note: See TracChangeset for help on using the changeset viewer.