Skip to content

Commit bb99661

Browse files
Serge E. HallynJunio C Hamano
authored andcommitted
cleanups: remove unused variable from exec_cmd.c
Not sure whether it should be removed, or whether execv_git_cmd() should return it rather than -1 at bottom. Signed-off-by: Serge E. Hallyn <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent dafc88b commit bb99661

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

exec_cmd.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const char *git_exec_path(void)
3232
int execv_git_cmd(const char **argv)
3333
{
3434
char git_command[PATH_MAX + 1];
35-
int len, err, i;
35+
int len, i;
3636
const char *paths[] = { current_exec_path,
3737
getenv("GIT_EXEC_PATH"),
3838
builtin_exec_path };
@@ -85,8 +85,6 @@ int execv_git_cmd(const char **argv)
8585
/* execve() can only ever return if it fails */
8686
execve(git_command, (char **)argv, environ);
8787

88-
err = errno;
89-
9088
argv[0] = tmp;
9189
}
9290
return -1;

0 commit comments

Comments
 (0)