@@ -96,7 +96,7 @@ typedef struct Link_Area
96
96
97
97
static char * fdata = NULL ; /* Pointer to the loaded data file */
98
98
static int help_lines ; /* Lines in help viewer */
99
- static int history_ptr ; /* For the history queue */
99
+ static int history_ptr = 0 ; /* For the history queue */
100
100
static const char * main_node ; /* The main node */
101
101
static const char * last_shown = NULL ; /* Last byte shown in a screen */
102
102
static gboolean end_of_node = FALSE; /* Flag: the last character of the node shown? */
@@ -1091,6 +1091,7 @@ help_interactive_display (const gchar *event_group_name, const gchar *event_name
1091
1091
char * filedata ;
1092
1092
ev_help_t * event_data = (ev_help_t * ) data ;
1093
1093
WRect r = { 1 , 1 , 1 , 1 };
1094
+ int i ;
1094
1095
1095
1096
(void ) event_group_name ;
1096
1097
(void ) event_name ;
@@ -1150,10 +1151,10 @@ help_interactive_display (const gchar *event_group_name, const gchar *event_name
1150
1151
selected_item = search_string_node (main_node , STRING_LINK_START ) - 1 ;
1151
1152
currentpoint = main_node + 1 ; /* Skip the newline following the start of the node */
1152
1153
1153
- for (history_ptr = HISTORY_SIZE - 1 ; history_ptr >= 0 ; history_ptr -- )
1154
+ for (i = HISTORY_SIZE - 1 ; i >= 0 ; i -- )
1154
1155
{
1155
- history [history_ptr ].page = currentpoint ;
1156
- history [history_ptr ].link = selected_item ;
1156
+ history [i ].page = currentpoint ;
1157
+ history [i ].link = selected_item ;
1157
1158
}
1158
1159
1159
1160
help_bar = buttonbar_new ();
0 commit comments