Fix missing initialization in CplexEnv::CplexEnv() (#445)
authorAlpar Juttner <alpar@cs.elte.hu>
Fri, 20 Jul 2012 21:23:17 +0200
changeset 1015d32e4453b48c
parent 1007 7e368d9b67f7
child 1016 97975184f4aa
child 1068 756022ac1674
Fix missing initialization in CplexEnv::CplexEnv() (#445)
lemon/cplex.cc
     1.1 --- a/lemon/cplex.cc	Wed Nov 28 11:41:40 2012 +0100
     1.2 +++ b/lemon/cplex.cc	Fri Jul 20 21:23:17 2012 +0200
     1.3 @@ -40,6 +40,7 @@
     1.4    CplexEnv::CplexEnv() {
     1.5      int status;
     1.6      _cnt = new int;
     1.7 +    (*_cnt) = 1;
     1.8      _env = CPXopenCPLEX(&status);
     1.9      if (_env == 0) {
    1.10        delete _cnt;