@matheusbsbs / matheus-bagliano / commits / 977ed47d86
Fork 0

Trivial optimization

GIT_DIR_ENVIRONMENT is always a string literal Signed-off-by: Junio C Hamano <junkio@cox.net>

H. Peter Anvin committed Oct 10, 2005 at 14:46 UTC 977ed47d86c40683a1b84f5226d589e924e95785
1 file changed +1 -2
rsh.c
+1 -2
@@ -109,8 +109,7 @@ int setup_connection(int *fd_in, int *fd_out, const char *remote_prog,
109 posn = command;
110 of = 0;
111 of |= add_to_string(&posn, &sizen, "env ", 0);
112 - of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT, 0);
113 - of |= add_to_string(&posn, &sizen, "=", 0);
112 + of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT "=", 0);
113 of |= add_to_string(&posn, &sizen, path, 1);
114 of |= add_to_string(&posn, &sizen, " ", 0);
115 of |= add_to_string(&posn, &sizen, remote_prog, 1);