From c62fe6dac88d99b042a3af3b1c603c762301a0ab Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 8 Sep 2025 11:21:29 +0000 Subject: [PATCH] The client can be NULL, fixes -v in config file. --- cmd-source-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd-source-file.c b/cmd-source-file.c index 9ab9e20e..3da3f0da 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -202,7 +202,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) cdata->flags |= CMD_PARSE_QUIET; if (args_has(args, 'n')) cdata->flags |= CMD_PARSE_PARSEONLY; - if (args_has(args, 'v') && (~c->flags & CLIENT_CONTROL)) + if (args_has(args, 'v') && (c == NULL || ~c->flags & CLIENT_CONTROL)) cdata->flags |= CMD_PARSE_VERBOSE; cwd = cmd_source_file_quote_for_glob(server_client_get_cwd(c, NULL));