From 0907017523af0870fad5ab36f1b04f1bef7a91c3 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 26 Jun 2014 12:25:46 +0000 Subject: [PATCH] use static variable --- src/ats/plugin_ats_proportional.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ats/plugin_ats_proportional.c b/src/ats/plugin_ats_proportional.c index 5459e216b..de8e5a9c4 100644 --- a/src/ats/plugin_ats_proportional.c +++ b/src/ats/plugin_ats_proportional.c @@ -905,8 +905,9 @@ get_active_address (void *solver, const struct GNUNET_CONTAINER_MultiPeerMap * addresses, const struct GNUNET_PeerIdentity *peer) { - struct ATS_Address * dest = NULL; + static struct ATS_Address * dest = NULL; + dest = NULL; GNUNET_CONTAINER_multipeermap_get_multiple (addresses, peer, &get_active_address_it, &dest); return dest; -- 2.25.1