diff --git a/ndb/src/ndbapi/ClusterMgr.cpp b/ndb/src/ndbapi/ClusterMgr.cpp
index b9947fcf0e7f519bf018b1c131f37399ed5c559f..3e1f0e48b1c5d2a07639d41fef08da1b160a3c9f 100644
--- a/ndb/src/ndbapi/ClusterMgr.cpp
+++ b/ndb/src/ndbapi/ClusterMgr.cpp
@@ -440,13 +440,11 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){
   theNode.nfCompleteRep = false;
 
   if(noOfConnectedNodes == 0){
-    Uint32 theData[1];
-    NFCompleteRep * rep = (NFCompleteRep *)&theData[0];
-
+    NFCompleteRep rep;
     for(Uint32 i = 1; i<MAX_NODES; i++){
       if(theNodes[i].defined && theNodes[i].nfCompleteRep == false){
-	rep->failedNodeId = i;
-	execNF_COMPLETEREP(theData);
+	rep.failedNodeId = i;
+	execNF_COMPLETEREP((Uint32*)&rep);
       }
     }
   }