forked from lijiext/lammps
address uninitialized variable issues pointed out by valgrind/coverity
This commit is contained in:
parent
5909bd5429
commit
50a82bb345
|
@ -197,7 +197,7 @@ void FixController::end_of_step()
|
|||
|
||||
// invoke compute if not previously invoked
|
||||
|
||||
double current;
|
||||
double current = 0.0;
|
||||
|
||||
if (pvwhich == COMPUTE) {
|
||||
if (pvindex == 0) {
|
||||
|
|
|
@ -898,7 +898,7 @@ double Variable::compute_equal(int ivar)
|
|||
error->all(FLERR,"Variable has circular dependency");
|
||||
eval_in_progress[ivar] = 1;
|
||||
|
||||
double value;
|
||||
double value = 0.0;
|
||||
if (style[ivar] == EQUAL) value = evaluate(data[ivar][0],NULL);
|
||||
else if (style[ivar] == INTERNAL) value = dvalue[ivar];
|
||||
else if (style[ivar] == PYTHON) {
|
||||
|
|
Loading…
Reference in New Issue