Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/midx.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-22 05:14:47 +0300
committerJunio C Hamano <gitster@pobox.com>2019-04-22 05:14:48 +0300
commit5f65d7d9bcd4bd863127df1dc10546f2b82a6b68 (patch)
treec9b643a3ba515225f6d73a3b98444d942a409fc7 /midx.c
parent39e4773daa758243ff3c708b024f39b7e47f0d7e (diff)
parent0cf2b0a04bb9b48fb0d91f47ce5fd2ea436112c8 (diff)
Merge branch 'dl/flex-str-cocci'
Code clean-up. * dl/flex-str-cocci: cocci: FLEX_ALLOC_MEM to FLEX_ALLOC_STR midx.c: convert FLEX_ALLOC_MEM to FLEX_ALLOC_STR
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 f1cd868f8c..f1137eb6ee 100644
--- a/midx.c
+++ b/midx.c
@@ -71,7 +71,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;