From: H. Peter Anvin Date: Mon, 10 Oct 2005 21:46:12 +0000 (-0700) Subject: Trivial optimization X-Git-Tag: v0.99.9~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=977ed47d86c40683a1b84f5226d589e924e95785;p=git.git Trivial optimization GIT_DIR_ENVIRONMENT is always a string literal Signed-off-by: Junio C Hamano --- diff --git a/rsh.c b/rsh.c index bad5cff2c..dde6f9ce9 100644 --- a/rsh.c +++ b/rsh.c @@ -109,8 +109,7 @@ int setup_connection(int *fd_in, int *fd_out, const char *remote_prog, posn = command; of = 0; of |= add_to_string(&posn, &sizen, "env ", 0); - of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT, 0); - of |= add_to_string(&posn, &sizen, "=", 0); + of |= add_to_string(&posn, &sizen, GIT_DIR_ENVIRONMENT "=", 0); of |= add_to_string(&posn, &sizen, path, 1); of |= add_to_string(&posn, &sizen, " ", 0); of |= add_to_string(&posn, &sizen, remote_prog, 1);