summaryrefslogtreecommitdiffstats
path: root/cfg.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-02-16 14:02:37 +0000
committerThomas Adam <thomas@xteddy.org>2019-02-16 14:02:37 +0000
commitfa8294436c3acf64899e4af5fc46e0f8f5b02c40 (patch)
treefe8390e4ddd793a2b6cf7cc962ff15cd9abf875c /cfg.c
parent9768091ee448d7d3e54778a514ea89d3c809a141 (diff)
parent82f0c859a2bcdfac79d242793b7720b74d62d04b (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cfg.c b/cfg.c
index 416dbf7a..53bcaade 100644
--- a/cfg.c
+++ b/cfg.c
@@ -37,6 +37,7 @@ struct cfg_cond {
};
TAILQ_HEAD(cfg_conds, cfg_cond);
+struct client *cfg_client;
static char *cfg_file;
int cfg_finished;
static char **cfg_causes;
@@ -94,7 +95,7 @@ start_cfg(void)
* command queue is currently empty and our callback will be at the
* front - we need to get in before MSG_COMMAND.
*/
- c = TAILQ_FIRST(&clients);
+ cfg_client = c = TAILQ_FIRST(&clients);
if (c != NULL) {
cfg_item = cmdq_get_callback(cfg_client_done, NULL);
cmdq_append(c, cfg_item);