]>
Commit | Line | Data |
---|---|---|
a4f26965 MT |
1 | diff -up texinfo-4.13/info/indices.c.orig texinfo-4.13/info/indices.c |
2 | --- texinfo-4.13/info/indices.c.orig 2010-08-31 12:04:38.317462471 +0200 | |
3 | +++ texinfo-4.13/info/indices.c 2010-08-31 12:11:49.322624552 +0200 | |
4 | @@ -192,6 +192,7 @@ do_info_index_search (WINDOW *window, in | |
5 | index for, build and remember an index now. */ | |
6 | fb = file_buffer_of_window (window); | |
7 | if (!initial_index_filename || | |
8 | + !fb || | |
9 | (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | |
10 | { | |
11 | info_free_references (index_index); | |
12 | @@ -287,8 +288,9 @@ index_entry_exists (WINDOW *window, char | |
13 | return 0; | |
14 | ||
15 | fb = file_buffer_of_window (window); | |
16 | - if (!initial_index_filename | |
17 | - || (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | |
18 | + if (!initial_index_filename || | |
19 | + !fb || | |
20 | + (FILENAME_CMP (initial_index_filename, fb->filename) != 0)) | |
21 | { | |
22 | info_free_references (index_index); | |
23 | index_index = info_indices_of_file_buffer (fb); |