Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5659 in orxonox.OLD for trunk/src/lib/util/executor/executor.cc


Ignore:
Timestamp:
Nov 20, 2005, 11:31:18 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: valgrind sweep - no more Use of Uninitialized Value in MultiType

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/util/executor/executor.cc

    r5641 r5659  
    5959  // What Parameters we have got
    6060  for (unsigned int i = 0; i < paramCount; i++)
    61     this->defaultValue[i].setType(va_arg(parameterList, int));
     61  {
     62    int type = va_arg(parameterList, int);
     63    this->defaultValue[i].setType(type);
     64  }
    6265}
    6366
     
    7982  executor->defaultValue = new MultiType[this->paramCount];
    8083  for (unsigned int i = 0; i < this->paramCount; i++)
    81     executor->defaultValue[i] = this->defaultValue[i];
     84  {
     85    executor->defaultValue[i] =  this->defaultValue[i];
     86//    printf("1: %s 2: %s\n", MultiType::MultiTypeToString(this->defaultValue[i].getType()),  MultiType::MultiTypeToString(executor->defaultValue[i].getType()));
     87  }
    8288}
    8389
Note: See TracChangeset for help on using the changeset viewer.