Initialize context->sys_ctxt!

This commit is contained in:
Willem Toorop 2017-11-23 13:23:00 +01:00
parent c3cdf496e3
commit 27847b9a0a
1 changed files with 1 additions and 1 deletions

View File

@ -5056,7 +5056,7 @@ getdns_context *_getdns_context_get_sys_ctxt(
if (context->sys_ctxt)
return context->sys_ctxt;
if ((r = getdns_context_create_with_extended_memory_functions2(
if ((r = getdns_context_create_with_extended_memory_functions2(&context->sys_ctxt,
( context->fchg_resolvconf && context->fchg_resolvconf->fn
? context->fchg_resolvconf->fn : NULL ),
context->mf.mf_arg, context->mf.mf.ext.malloc,