diff options
author | Russell Belfer <rb@github.com> | 2013-04-16 15:00:43 -0700 |
---|---|---|
committer | Vicent Marti <tanoku@gmail.com> | 2013-04-22 16:52:07 +0200 |
commit | 5d2d21e536b83ca2cbf8c026b3149fdf776c3f58 (patch) | |
tree | 87584f49bd93460782f162f5e5dac8af3ca15b83 /src/indexer.c | |
parent | 38eef6113d8523abfe6746bf727cee2651398ad3 (diff) | |
download | libgit2-5d2d21e536b83ca2cbf8c026b3149fdf776c3f58.tar.gz |
Consolidate packfile allocation further
Rename git_packfile_check to git_packfile_alloc since it is now
being used more in that capacity. Fix the various places that use
it. Consolidate some repeated code in odb_pack.c related to the
allocation of a new pack_backend.
Diffstat (limited to 'src/indexer.c')
-rw-r--r-- | src/indexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indexer.c b/src/indexer.c index 50a9d3a37..606771927 100644 --- a/src/indexer.c +++ b/src/indexer.c @@ -62,7 +62,7 @@ static int open_pack(struct git_pack_file **out, const char *filename) { struct git_pack_file *pack; - if (git_packfile_check(&pack, filename) < 0) + if (git_packfile_alloc(&pack, filename) < 0) return -1; if ((pack->mwf.fd = p_open(pack->pack_name, O_RDONLY)) < 0) { |