Fix a warning about unused value.

Fix a warning:
  git.c:276: warning: value computed is not used

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
YOSHIFUJI Hideaki / 吉藤英明 2005-11-25 19:03:05 +09:00 committed by Junio C Hamano
parent 2c52a42dd7
commit 874fbc3323

2
git.c
View File

@ -273,7 +273,7 @@ int main(int argc, char **argv, char **envp)
while (!strncmp(exec_path, "./", 2)) {
exec_path += 2;
while (*exec_path == '/')
*exec_path++;
exec_path++;
}
snprintf(git_command + len, sizeof(git_command) - len,
"/%s", exec_path);