diff options
| author | Simon Tatham <anakin@pobox.com> | 2017-05-14 08:11:06 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-05-14 08:44:15 +0100 |
| commit | c00d1c3b6003dbbb72439de0ebdb4a93c8763f65 (patch) | |
| tree | 548ad96cb72398c69625ec670beeb90c0566a15d /contents.c | |
| parent | 94831068fb5573b1ebdb9def9c2ad09f0694d45c (diff) | |
| download | halibut-c00d1c3b6003dbbb72439de0ebdb4a93c8763f65.zip halibut-c00d1c3b6003dbbb72439de0ebdb4a93c8763f65.tar.gz halibut-c00d1c3b6003dbbb72439de0ebdb4a93c8763f65.tar.bz2 halibut-c00d1c3b6003dbbb72439de0ebdb4a93c8763f65.tar.xz | |
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.
Diffstat (limited to 'contents.c')
| -rw-r--r-- | contents.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -53,6 +53,8 @@ static void dotext(word ***wret, wchar_t *text) { mnewword->type = word_Normal; mnewword->alt = NULL; mnewword->next = NULL; + mnewword->breaks = FALSE; + mnewword->aux = 0; **wret = mnewword; *wret = &mnewword->next; } @@ -63,6 +65,8 @@ static void dospace(word ***wret) { mnewword->type = word_WhiteSpace; mnewword->alt = NULL; mnewword->next = NULL; + mnewword->breaks = FALSE; + mnewword->aux = 0; **wret = mnewword; *wret = &mnewword->next; } |