X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=fast-import.c;h=c1486cabbaa5f736f92994587fafd1f3afdf43af;hb=a12c6b0149e3dadd0701dac4fd0ba2463d251650;hp=6cd19e580ba710d03682fcaff997fa7e0e555691;hpb=67f8d5b87d8ec3dcdb311f31b534332b74c93142;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;