aboutsummaryrefslogtreecommitdiffstats
path: root/midx.c
diff options
context:
space:
mode:
authorDenton Liu <liu.denton@gmail.com>2019-04-03 15:00:05 -0700
committerJunio C Hamano <gitster@pobox.com>2019-04-04 18:22:27 +0900
commit577314caae2635986aa30a83ed956c8741d27ffb (patch)
tree22b9d3e61ac959c2e15ede8a854ea73bed7af81e /midx.c
parent041f5ea1cf987a4068ef5f39ba0a09be85952064 (diff)
downloadgit-577314caae2635986aa30a83ed956c8741d27ffb.tar.gz
midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STR
Signed-off-by: Denton Liu <liu.denton@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'midx.c')
-rw-r--r--midx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midx.c b/midx.c
index 8a505fd423..cb8190329a 100644
--- a/midx.c
+++ b/midx.c
@@ -70,7 +70,7 @@ struct multi_pack_index *load_multi_pack_index(const char *object_dir, int local
midx_map = xmmap(NULL, midx_size, PROT_READ, MAP_PRIVATE, fd, 0);
- FLEX_ALLOC_MEM(m, object_dir, object_dir, strlen(object_dir));
+ FLEX_ALLOC_STR(m, object_dir, object_dir);
m->fd = fd;
m->data = midx_map;
m->data_len = midx_size;