summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2013-03-22 15:54:29 +0000
committerNicholas Marriott <nicm@openbsd.org>2013-03-22 15:54:29 +0000
commit2243cfbe7559e6cf48194ff95dcd7eb6df5fe41d (patch)
treed1cf60483d7b08f01f00610c5e341d26520557c9 /cfg.c
parentd644e5143fbce243ddcca468a1b8a1d5bfd21b34 (diff)
Need to set clients in context before changing their reference count.
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cfg.c b/cfg.c
index 1548fb14..b7b0ec78 100644
--- a/cfg.c
+++ b/cfg.c
@@ -92,7 +92,7 @@ load_cfg(const char *path, struct cmd_ctx *ctx, struct causelist *causes)
if (ctx != NULL)
cmd_ref_ctx(ctx);
else {
- ctx = cmd_get_ctx();
+ ctx = cmd_get_ctx(NULL, NULL);
ctx->error = cfg_error;
ctx->print = cfg_print;
ctx->info = cfg_print;