Changeset 508


Ignore:
Timestamp:
Aug 14, 2007 11:15:12 AM (13 years ago)
Author:
jpfasano
Message:

Fix invalid null pointer when running "cbc -miplib".
See https://projects.coin-or.org/Cbc/ticket/30

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cgl/src/CglKnapsackCover/CglKnapsackCover.cpp

    r489 r508  
    809809       const double * element) const
    810810{
     811
     812  // Fix to https://projects.coin-or.org/Cbc/ticket/30
     813  {
     814#ifndef COIN_DEVELOP
     815    if (numberElements==0) return 0;
     816#else
     817    assert (numberElements>0);
     818#endif
     819  }
     820
    811821  int i;
    812822
Note: See TracChangeset for help on using the changeset viewer.