summaryrefslogtreecommitdiff
path: root/word.c
diff options
context:
space:
mode:
Diffstat (limited to 'word.c')
-rw-r--r--word.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/word.c b/word.c
index 1e8d56a..8d296df 100644
--- a/word.c
+++ b/word.c
@@ -28,6 +28,7 @@ struct word_t *word_get(char *name) {
if(!word->name) {
word->hash = hash;
word->name = strdup(name);
+ word->id = 0;
word->count = 0;
word->next = NULL;
}