diff options
Diffstat (limited to 'src/string_vec.c')
-rw-r--r-- | src/string_vec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/string_vec.c b/src/string_vec.c index 8806705..c337c61 100644 --- a/src/string_vec.c +++ b/src/string_vec.c @@ -79,6 +79,8 @@ void string_vec_add(struct string_vec *restrict vec, const char *restrict str) vec->buf = xrealloc(vec->buf, vec->size * sizeof(vec->buf[0])); } vec->buf[vec->count].string = xstrdup(str); + vec->buf[vec->count].search_score = 0; + vec->buf[vec->count].history_score = 0; vec->count++; } |