summaryrefslogtreecommitdiff
path: root/rsh.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2005-10-10 21:46:12 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-10 21:46:12 (GMT)
commit977ed47d86c40683a1b84f5226d589e924e95785 (patch)
treed1a27a2660c908f23af6956e7e980aa656d9b3d6 /rsh.c
parent77d604c30974587a2e0d36d92c48cef87f6e8e4d (diff)
downloadgit-977ed47d86c40683a1b84f5226d589e924e95785.zip
git-977ed47d86c40683a1b84f5226d589e924e95785.tar.gz
git-977ed47d86c40683a1b84f5226d589e924e95785.tar.bz2
Trivial optimization
GIT_DIR_ENVIRONMENT is always a string literal Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'rsh.c')
-rw-r--r--rsh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/rsh.c b/rsh.c
index bad5cff..dde6f9c 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);