@@ -3966,19 +3966,19 @@ parse_contents(tree_t *t, /* I - Tree to parse */
39663966
39673967 if (t->markup == MARKUP_B && pages[*page].chapter == pages[*page - 1 ].chapter )
39683968 {
3969- uchar *chapter = htmlGetText (t->child ->child );
3970- pages[*page].chapter = (uchar *)hd_strdup ((char *)chapter );
3971- free (chapter );
3969+ uchar *tchapter = htmlGetText (t->child ->child );
3970+ pages[*page].chapter = (uchar *)hd_strdup ((char *)tchapter );
3971+ free (tchapter );
39723972
39733973 for (int i = *page + 1 ; i < (int )num_pages; i ++)
39743974 pages[i].chapter = pages[*page].chapter ;
39753975 }
39763976
39773977 if (pages[*page].heading == pages[*page - 1 ].heading )
39783978 {
3979- uchar *heading = htmlGetText (t->child ->child );
3980- pages[*page].heading = (uchar *)hd_strdup ((char *)heading );
3981- free (heading );
3979+ uchar *theading = htmlGetText (t->child ->child );
3980+ pages[*page].heading = (uchar *)hd_strdup ((char *)theading );
3981+ free (theading );
39823982
39833983 for (int i = *page + 1 ; i < (int )num_pages; i ++)
39843984 pages[i].heading = pages[*page].heading ;
@@ -4691,9 +4691,9 @@ parse_heading(tree_t *t, /* I - Tree to parse */
46914691
46924692 if (t->markup == MARKUP_H1 && !title_page)
46934693 {
4694- uchar *chapter = htmlGetText (current_heading);
4695- pages[*page].chapter = (uchar *)hd_strdup ((char *)chapter );
4696- free (chapter );
4694+ uchar *tchapter = htmlGetText (current_heading);
4695+ pages[*page].chapter = (uchar *)hd_strdup ((char *)tchapter );
4696+ free (tchapter );
46974697
46984698 for (int i = *page + 1 ; i < (int )num_pages; i ++)
46994699 pages[i].chapter = pages[*page].chapter ;
@@ -4703,10 +4703,10 @@ parse_heading(tree_t *t, /* I - Tree to parse */
47034703 (*page > 0 && pages[*page].heading == pages[*page - 1 ].heading )) &&
47044704 !title_page)
47054705 {
4706- uchar *heading = htmlGetText (current_heading);
4707- pages[*page].heading = (uchar *)hd_strdup ((char *)heading );
4706+ uchar *theading = htmlGetText (current_heading);
4707+ pages[*page].heading = (uchar *)hd_strdup ((char *)theading );
47084708 pages[*page].headnode = current_heading;
4709- free (heading );
4709+ free (theading );
47104710
47114711 for (int i = *page + 1 ; i < (int )num_pages; i ++)
47124712 {
0 commit comments