Skip to content

Commit

Permalink
cleanups: remove unused variable from exec_cmd.c
Browse files Browse the repository at this point in the history
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 <serue@us.ibm.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Serge E. Hallyn authored and Junio C Hamano committed Apr 17, 2006
1 parent dafc88b commit bb99661
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions exec_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const char *git_exec_path(void)
int execv_git_cmd(const char **argv)
{
char git_command[PATH_MAX + 1];
int len, err, i;
int len, i;
const char *paths[] = { current_exec_path,
getenv("GIT_EXEC_PATH"),
builtin_exec_path };
Expand Down Expand Up @@ -85,8 +85,6 @@ int execv_git_cmd(const char **argv)
/* execve() can only ever return if it fails */
execve(git_command, (char **)argv, environ);

err = errno;

argv[0] = tmp;
}
return -1;
Expand Down

0 comments on commit bb99661

Please sign in to comment.