From c00d1c3b6003dbbb72439de0ebdb4a93c8763f65 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 14 May 2017 08:11:06 +0100 Subject: Add missing initialisations in the 'word' structure. The 'breaks' and 'aux' fields were filled in rather inconsistently at various places where a word is created - especially the outlying ones that manufacture pieces of document during internal processing of contents, index, bibliography, cross-references etc rather than directly from the input file. This has never led to any user-visible behaviour change that I've noticed, but it made a lot of annoying noise in the valgrind output, which got in my way last week when I was trying to debug the CHM generation. --- biblio.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'biblio.c') diff --git a/biblio.c b/biblio.c index f4c5413..823588c 100644 --- a/biblio.c +++ b/biblio.c @@ -95,8 +95,10 @@ void gen_citations(paragraph *source, keywordlist *kl) { word *wd = smalloc(sizeof(word)); wd->text = gentext(++bibnum); wd->type = word_Normal; + wd->breaks = FALSE; wd->alt = NULL; wd->next = NULL; + wd->aux = 0; kw->text = wd; } para->kwtext = kw->text; -- cgit v1.1