diff --git a/tools/libtxt/edit.c b/tools/libtxt/edit.c index 4e023f9..9b93910 100644 --- a/tools/libtxt/edit.c +++ b/tools/libtxt/edit.c @@ -195,6 +195,7 @@ static void add_string(struct edit ***last, const char *start, size_t len) e = alloc_type(struct edit); e->type = edit_string; e->u.s = alloc_string_n(start, len); + e->next = NULL; **last = e; *last = &e->next; }