On Mon, May 3, 2021 at 1:01 PM Eric Sunshine <sunshine@xxxxxxxxxxxxxx> wrote: > for (i = 0; !result && i < values->nr; i++) { > const char *d = chdir(values->items[i].string); > if (chdir(d)) > die_errno(_("cannot chdir to '%s'"), d); > child.git_cmd = 1; > child.argv = argv; > result = run_command(&child); > } Without the copy/paste error, the declaration of `d` would, of course, be: const char *d = values->items[i].string;