X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fast-import.c;h=c1486cabbaa5f736f92994587fafd1f3afdf43af;hb=5eb660ecd1965c67be0051c46b8e8a56b28ff5b2;hp=6cd19e580ba710d03682fcaff997fa7e0e555691;hpb=4d06691eeca5712319a7e8cf2085d081dca9ea47;p=git.git diff --git a/fast-import.c b/fast-import.c index 6cd19e580..c1486cabb 100644 --- a/fast-import.c +++ b/fast-import.c @@ -2712,7 +2712,7 @@ static void parse_new_tag(void) /* Obtain the new tag name from the rest of our command */ sp = strchr(command_buf.buf, ' ') + 1; t = pool_alloc(sizeof(struct tag)); - t->next_tag = NULL; + memset(t, 0, sizeof(struct tag)); t->name = pool_strdup(sp); if (last_tag) last_tag->next_tag = t;