Need to set clients in context before changing their reference count.

This commit is contained in:
Nicholas Marriott
2013-02-20 10:25:15 +00:00
parent e68b9abd04
commit afd5e978cf
9 changed files with 12 additions and 15 deletions

2
cfg.c
View File

@ -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;