Skip to content

Commit

Permalink
GIT: Fix compilation error in connect.c
Browse files Browse the repository at this point in the history
Fix compilation error for gcc-2.95.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
YOSHIFUJI Hideaki / 吉藤英明 authored and Junio C Hamano committed Nov 22, 2005
1 parent d6ebd25 commit c3df856
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,10 @@ static int rhost_len;
static int git_proxy_command_options(const char *var, const char *value)
{
if (!strcmp(var, "core.gitproxy")) {
const char *for_pos;
int matchlen = -1;
int hostlen;

if (git_proxy_command)
return 0;
/* [core]
Expand All @@ -463,10 +467,7 @@ static int git_proxy_command_options(const char *var, const char *value)
* gitproxy = netcatter-2 for sample.xz
* gitproxy = netcatter-default
*/
const char *for_pos = strstr(value, " for ");
int matchlen = -1;
int hostlen;

for_pos = strstr(value, " for ");
if (!for_pos)
/* matches everybody */
matchlen = strlen(value);
Expand Down

0 comments on commit c3df856

Please sign in to comment.