summaryrefslogtreecommitdiffstats
path: root/cmd-source-file.c
diff options
context:
space:
mode:
authortim <tim>2019-12-21 17:30:48 +0000
committertim <tim>2019-12-21 17:30:48 +0000
commit5cd00eda0b7f1775bd3c8ce9497c72ddfada9592 (patch)
tree7213e6b1d97d0d70f80dcca962b0fc2f327a5eaa /cmd-source-file.c
parent1764f66b7d1ed0e494cfa8967c78ace8728ee86c (diff)
Restore source-file -q behaviour, broken in r1.42; OK nicm@
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r--cmd-source-file.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c
index c34cdf41..46dc6d94 100644
--- a/cmd-source-file.c
+++ b/cmd-source-file.c
@@ -125,7 +125,6 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
{
struct args *args = self->args;
struct cmd_source_file_data *cdata;
- int flags = 0;
struct client *c = item->client;
enum cmd_retval retval = CMD_RETURN_NORMAL;
char *pattern, *cwd;
@@ -161,7 +160,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
if ((result = glob(pattern, 0, NULL, &g)) != 0) {
if (result != GLOB_NOMATCH ||
- (~flags & CMD_PARSE_QUIET)) {
+ (~cdata->flags & CMD_PARSE_QUIET)) {
if (result == GLOB_NOMATCH)
error = strerror(ENOENT);
else if (result == GLOB_NOSPACE)