@matheusbsbs / matheus-bagliano / commits / bb996614de
Fork 0

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 <serue@us.ibm.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Serge E. Hallyn committed Apr 17, 2006 at 10:14 UTC bb996614de4fddfa73286479f3c6a901107a2629
1 file changed +1 -3
exec_cmd.c
+1 -3
@@ -32,7 +32,7 @@ const char *git_exec_path(void)
32 int execv_git_cmd(const char **argv)
33 {
34 char git_command[PATH_MAX + 1];
35 - int len, err, i;
35 + int len, i;
36 const char *paths[] = { current_exec_path,
37 getenv("GIT_EXEC_PATH"),
38 builtin_exec_path };
@@ -85,8 +85,6 @@ int execv_git_cmd(const char **argv)
85 /* execve() can only ever return if it fails */
86 execve(git_command, (char **)argv, environ);
87
88 - err = errno;
89 -
88 argv[0] = tmp;
89 }
90 return -1;