Browse Source

sha1_file.c::add_packed_git(): fix type mismatch.

An object name is 20-byte 'unsigned char', not 'char'.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 19 years ago
parent
commit
c0bbbb1ba9
  1. 2
      sha1_file.c

2
sha1_file.c

@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local) @@ -424,7 +424,7 @@ struct packed_git *add_packed_git(char *path, int path_len, int local)
struct packed_git *p;
unsigned long idx_size;
void *idx_map;
char sha1[20];
unsigned char sha1[20];

if (check_packed_git_idx(path, &idx_size, &idx_map))
return NULL;

Loading…
Cancel
Save