Code

grep doc: add --break / --heading / -W to synopsis
[git.git] / fast-import.c
index 6cd19e580ba710d03682fcaff997fa7e0e555691..c1486cabbaa5f736f92994587fafd1f3afdf43af 100644 (file)
@@ -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;