--- trunk/src/io/RestWriter.cpp 2015/03/07 16:59:57 2070 +++ trunk/src/io/RestWriter.cpp 2015/03/07 21:41:51 2071 @@ -62,7 +62,7 @@ namespace OpenMD { createRestFile_ = false; #ifdef IS_MPI - MPI_Status* istatus; + MPI_Status* istatus = NULL; #endif int printAny = 0; @@ -195,11 +195,11 @@ namespace OpenMD { void RestWriter::writeRest(std::vector > restInfo) { #ifdef IS_MPI - MPI_Status* istatus; + MPI_Status* istatus = NULL; #endif #ifndef IS_MPI - if (createRestFile_) (*output_) << info_->getSnapshotManager()->getCurrentSnapshot()->getTime(); + if (createRestFile_) (*output_) << info_->getSnapshotManager()->getCurrentSnapshot()->getTime(); // output some information about the molecules std::vector >::const_iterator i;