From: Lucas De Marchi Date: Wed, 4 Jan 2012 10:14:54 +0000 (-0200) Subject: config: take a weakref to ctx X-Git-Tag: v3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29b69c0b98bdf43907206bfcdaadadcb4a1ea195;p=thirdparty%2Fkmod.git config: take a weakref to ctx Commit "b6a4dfb config: save list of config paths with their timestamps" removed the weakref to ctx. Add it back. --- diff --git a/libkmod/libkmod-config.c b/libkmod/libkmod-config.c index db9fbd6d..f4372472 100644 --- a/libkmod/libkmod-config.c +++ b/libkmod/libkmod-config.c @@ -796,6 +796,7 @@ int kmod_config_new(struct kmod_ctx *ctx, struct kmod_config **p_config, goto oom; config->paths = path_list; + config->ctx = ctx; for (; list != NULL; list = kmod_list_remove(list)) { char fn[PATH_MAX];