aboutsummaryrefslogtreecommitdiff
path: root/cfg.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:25:15 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2013-02-20 10:25:15 +0000
commitafd5e978cf8dca6dcd824b224ce798f6b7522605 (patch)
tree2075e930d58916d8b96da6bf1e42c299944ab3d7 /cfg.c
parente68b9abd0403d09c6af993427482e27c0f308765 (diff)
downloadrtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.gz
rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.tar.bz2
rtmux-afd5e978cf8dca6dcd824b224ce798f6b7522605.zip
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 7acc08bd..57b70b5b 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;