Merge branch 'sh/use-hashcpy'
* sh/use-hashcpy: Use hashcpy() when copying object names
This commit is contained in:
2
bundle.c
2
bundle.c
@ -15,7 +15,7 @@ static void add_to_ref_list(const unsigned char *sha1, const char *name,
|
||||
struct ref_list *list)
|
||||
{
|
||||
ALLOC_GROW(list->list, list->nr + 1, list->alloc);
|
||||
memcpy(list->list[list->nr].sha1, sha1, 20);
|
||||
hashcpy(list->list[list->nr].sha1, sha1);
|
||||
list->list[list->nr].name = xstrdup(name);
|
||||
list->nr++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user