Merge branch 'obsd-master'

This commit is contained in:
Thomas Adam 2023-11-14 22:01:09 +00:00
commit bdf8e614af

View File

@ -789,7 +789,8 @@ args_make_commands_prepare(struct cmd *self, struct cmdq_item *item, u_int idx,
if (wait)
state->pi.item = item;
cmd_get_source(self, &file, &state->pi.line);
state->pi.file = xstrdup(file);
if (file != NULL)
state->pi.file = xstrdup(file);
state->pi.c = tc;
if (state->pi.c != NULL)
state->pi.c->references++;