diff --git a/fast-import.c b/fast-import.c
index 6cd19e580ba710d03682fcaff997fa7e0e555691..c1486cabbaa5f736f92994587fafd1f3afdf43af 100644 (file)
--- a/fast-import.c
+++ b/fast-import.c
/* 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;