From: Matthias Wachs Date: Wed, 24 Aug 2011 12:50:49 +0000 (+0000) Subject: fixing segfault caused by missing hashmap init X-Git-Tag: initial-import-from-subversion-38251~17319 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0631fa0b614e463c585162b065f56f31eeb13dfa;p=oweals%2Fgnunet.git fixing segfault caused by missing hashmap init --- diff --git a/src/ats/ats_api.c b/src/ats/ats_api.c index ca0954173..aee7fd886 100644 --- a/src/ats/ats_api.c +++ b/src/ats/ats_api.c @@ -364,6 +364,7 @@ GNUNET_ATS_init (const struct GNUNET_CONFIGURATION_Handle *cfg, atc->alloc_cb = alloc_cb; atc->alloc_cb_cls = alloc_cb_cls; atc->peers = GNUNET_CONTAINER_multihashmap_create (256); + atc->notify_map = GNUNET_CONTAINER_multihashmap_create (256); GNUNET_CONFIGURATION_get_value_number (cfg, "core", "TOTAL_QUOTA_OUT", &atc->total_bps); return atc;