summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2004-08-04 16:44:38 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2004-08-04 16:44:38 +0000
commitdac8f2ae8dda37f1bbb384fef0c1680c0a26eb41 (patch)
treed8e4c1ef5b85a7d2ddc63c2c7f3ce2169f2d3658
parent8ec4d9f16a5bde1d821847e84075909d9f79bac1 (diff)
downloadhalibut-dac8f2ae8dda37f1bbb384fef0c1680c0a26eb41.zip
halibut-dac8f2ae8dda37f1bbb384fef0c1680c0a26eb41.tar.gz
halibut-dac8f2ae8dda37f1bbb384fef0c1680c0a26eb41.tar.bz2
halibut-dac8f2ae8dda37f1bbb384fef0c1680c0a26eb41.tar.xz
Fix for an uninitialised structure member spotted by valgrind (probably didn't
have any real effect). [originally from svn r4401]
-rw-r--r--bk_html.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bk_html.c b/bk_html.c
index 23219be..1bd573a 100644
--- a/bk_html.c
+++ b/bk_html.c
@@ -540,6 +540,7 @@ void html_backend(paragraph *sourceform, keywordlist *keywords,
sect->text = NULL;
sect->type = INDEX;
sect->parent = topsect;
+ sect->contents_depth = 0;
html_file_section(&conf, &files, sect, 0); /* peer of chapters */
sect->fragment = utoa_dup(conf.index_text, CS_ASCII);
sect->fragment = html_sanitise_fragment(&files, sect->file,