Merge branch 'obsd-master'

pull/3747/head
Thomas Adam 2023-11-14 22:01:09 +00:00
commit bdf8e614af
1 changed files with 2 additions and 1 deletions

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