diff options
| author | Simon Tatham <anakin@pobox.com> | 2004-07-13 08:40:20 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2004-07-13 08:40:20 +0000 |
| commit | a5e910448b26d9d77af462c0634ab34b0a465d0d (patch) | |
| tree | bb6647580b7fe23982f29561222437b4aabf63cd | |
| parent | 6ec4c030855104a249b3c9dcafd361b452a76074 (diff) | |
| download | halibut-a5e910448b26d9d77af462c0634ab34b0a465d0d.zip halibut-a5e910448b26d9d77af462c0634ab34b0a465d0d.tar.gz halibut-a5e910448b26d9d77af462c0634ab34b0a465d0d.tar.bz2 halibut-a5e910448b26d9d77af462c0634ab34b0a465d0d.tar.xz | |
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!
[originally from svn r4326]
| -rw-r--r-- | bk_whlp.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; } |