From 7a5bb1e57e53953d25863f767c4a60584ed4d599 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 13 Jul 2004 08:40:20 +0000 Subject: [PATCH] Failed to initialise state.curr_topic early enough, causing uninitialised-memory references and a segfault. Quite why this never happened when I tested it at home, I have no idea! git-svn-id: svn://svn.tartarus.org/sgt/halibut@4326 cda61777-01e9-0310-a592-d414129be87e --- bk_whlp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bk_whlp.c b/bk_whlp.c index 6593013..9772021 100644 --- a/bk_whlp.c +++ b/bk_whlp.c @@ -312,6 +312,7 @@ void whlp_backend(paragraph *sourceform, keywordlist *keywords, */ whlp_begin_topic(h, contents_topic, "Contents", "DB(\"btn_up\")", NULL); + state.curr_topic = contents_topic; /* * The manual title goes in the non-scroll region, and also @@ -412,8 +413,6 @@ void whlp_backend(paragraph *sourceform, keywordlist *keywords, whlp_navmenu(&state, p, &conf); } - state.curr_topic = contents_topic; - done_contents_topic = TRUE; } -- 2.11.0