diff options
author | Julius Bünger <buenger@mytum.de> | 2020-11-16 22:59:12 +0100 |
---|---|---|
committer | Julius Bünger <buenger@mytum.de> | 2020-11-16 23:03:13 +0100 |
commit | 0950b1df774f5a040bc1d16d56e939480babe068 (patch) | |
tree | dcedf85df180180c1999f8fbcbe9741bad497d15 /src | |
parent | 266823196daab39713bef4a017b10d60d39bfa93 (diff) | |
download | gnunet-0950b1df774f5a040bc1d16d56e939480babe068.tar.gz gnunet-0950b1df774f5a040bc1d16d56e939480babe068.zip |
rps: properly initialise memory
Diffstat (limited to 'src')
-rw-r--r-- | src/rps/gnunet-rps-profiler.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
2652 | store_prefix_file_name (rps_peer->index, "probs"); | 2652 | store_prefix_file_name (rps_peer->index, "probs"); |
2653 | rps_peer->file_name_probs_hist = | 2653 | rps_peer->file_name_probs_hist = |
2654 | store_prefix_file_name (rps_peer->index, "probs_hist"); | 2654 | store_prefix_file_name (rps_peer->index, "probs_hist"); |
2655 | rps_peer->eval_probs_cache = GNUNET_new_array (num_peers, double); | ||
2656 | memset (rps_peer->eval_probs_cache, 0, num_peers * sizeof (double)); | ||
2655 | GNUNET_RPS_view_request (h, 0, view_update_cb, rps_peer); | 2657 | GNUNET_RPS_view_request (h, 0, view_update_cb, rps_peer); |
2656 | } | 2658 | } |
2657 | 2659 | ||
2658 | |||
2659 | void | 2660 | void |
2660 | write_final_stats (void) | 2661 | write_final_stats (void) |
2661 | { | 2662 | { |