compare avail_vector to NULL (xlc may not like it compares with 0)
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 15 Jul 2009 13:33:16 +0000 (13:33 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 15 Jul 2009 13:33:16 +0000 (13:33 +0000)
src/ck-ldb/CentralLB.C

index d3f3738359850731718fee91716d547afcbde7fb..f0501e272027dacff55b62838d9461a272ccdebf 100644 (file)
@@ -1257,7 +1257,7 @@ CLBStatsMsg::CLBStatsMsg(int osz, int csz) {
 CLBStatsMsg::~CLBStatsMsg() {
   delete [] objData;
   delete [] commData;
-  if (avail_vector) delete [] avail_vector;
+  if (avail_vector!=NULL) delete [] avail_vector;
 }
 
 void CLBStatsMsg::pup(PUP::er &p) {