[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 05/05: rps: properly initialise memory
From: |
gnunet |
Subject: |
[gnunet] 05/05: rps: properly initialise memory |
Date: |
Mon, 16 Nov 2020 23:04:02 +0100 |
This is an automated email from the git hooks/post-receive script.
julius-buenger pushed a commit to branch master
in repository gnunet.
commit 0950b1df774f5a040bc1d16d56e939480babe068
Author: Julius Bünger <buenger@mytum.de>
AuthorDate: Mon Nov 16 22:59:12 2020 +0100
rps: properly initialise memory
---
src/rps/gnunet-rps-profiler.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/rps/gnunet-rps-profiler.c b/src/rps/gnunet-rps-profiler.c
index 392a3c18f..7d6bf407f 100644
--- a/src/rps/gnunet-rps-profiler.c
+++ b/src/rps/gnunet-rps-profiler.c
@@ -2652,10 +2652,11 @@ pre_profiler (struct RPSPeer *rps_peer, struct
GNUNET_RPS_Handle *h)
store_prefix_file_name (rps_peer->index, "probs");
rps_peer->file_name_probs_hist =
store_prefix_file_name (rps_peer->index, "probs_hist");
+ rps_peer->eval_probs_cache = GNUNET_new_array (num_peers, double);
+ memset (rps_peer->eval_probs_cache, 0, num_peers * sizeof (double));
GNUNET_RPS_view_request (h, 0, view_update_cb, rps_peer);
}
-
void
write_final_stats (void)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.