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:

committed by
Junio C Hamano

parent
2c52a42dd7
commit
874fbc3323
2
git.c
2
git.c
@ -273,7 +273,7 @@ int main(int argc, char **argv, char **envp)
|
|||||||
while (!strncmp(exec_path, "./", 2)) {
|
while (!strncmp(exec_path, "./", 2)) {
|
||||||
exec_path += 2;
|
exec_path += 2;
|
||||||
while (*exec_path == '/')
|
while (*exec_path == '/')
|
||||||
*exec_path++;
|
exec_path++;
|
||||||
}
|
}
|
||||||
snprintf(git_command + len, sizeof(git_command) - len,
|
snprintf(git_command + len, sizeof(git_command) - len,
|
||||||
"/%s", exec_path);
|
"/%s", exec_path);
|
||||||
|
Reference in New Issue
Block a user