We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d73db00 + 5b7eec4 commit 8a48cd4Copy full SHA for 8a48cd4
builtin/fast-import.c
@@ -2809,8 +2809,7 @@ static void parse_new_tag(const char *arg)
2809
enum object_type type;
2810
const char *v;
2811
2812
- t = mem_pool_alloc(&fi_mem_pool, sizeof(struct tag));
2813
- memset(t, 0, sizeof(struct tag));
+ t = mem_pool_calloc(&fi_mem_pool, 1, sizeof(struct tag));
2814
t->name = mem_pool_strdup(&fi_mem_pool, arg);
2815
if (last_tag)
2816
last_tag->next_tag = t;
0 commit comments