From 2be5e2fe106e88d68b1ba7479f3f57530ad1fea2 Mon Sep 17 00:00:00 2001 From: Cristian C Lalescu <Cristian.Lalescu@mpcdf.mpg.de> Date: Mon, 16 Nov 2020 16:15:43 +0100 Subject: [PATCH] imposes pointer initialization with NULL --- cpp/particles/p2p/p2p_ghost_collisions.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/particles/p2p/p2p_ghost_collisions.hpp b/cpp/particles/p2p/p2p_ghost_collisions.hpp index 1e1d619f..b89fe857 100644 --- a/cpp/particles/p2p/p2p_ghost_collisions.hpp +++ b/cpp/particles/p2p/p2p_ghost_collisions.hpp @@ -127,9 +127,9 @@ public: { DEBUG_MSG(("local IDs of vec: "+std::to_string(collision_pairs_vec_local[0])+" "+std::to_string(collision_pairs_vec_local[1])+"\n").c_str()); } - int * recvcounts; + int * recvcounts = NULL; int vec_len_local = collision_pairs_vec_local.size(); - int * displ; + int * displ = NULL; if (myrank == 0) { recvcounts = new int[nprocs]; -- GitLab