File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ v1.9.24 - YYYY-MM-DD
77- Updated the maximum image dimensions for RGBA images (Issue #557 )
88- Added/updated memory allocation checks (Issue #558 )
99- Updated error messages for consistency.
10+ - Fixed a crash bug when generating HTML output from empty HTML input files
11+ (Issue #560 )
1012
1113
1214v1.9.23 - 2026-01-28
Original file line number Diff line number Diff line change @@ -1010,7 +1010,8 @@ static void
10101010update_links (tree_t *t, /* I - Document tree */
10111011 uchar *filename) /* I - Current filename */
10121012{
1013- tree_t *doc = t->parent ; /* Top of document */
1013+ tree_t *doc = t ? t->parent : NULL ;
1014+ /* Top of document */
10141015 link_t *link; /* Link */
10151016 uchar *href; /* Reference name */
10161017 uchar newhref[1024 ]; /* New reference name */
Original file line number Diff line number Diff line change @@ -1108,7 +1108,8 @@ static void
11081108update_links (tree_t *t, // I - Document tree
11091109 int *heading) // I - Current heading
11101110{
1111- tree_t *doc = t->parent ; // Top of document
1111+ tree_t *doc = t ? t->parent : NULL ;
1112+ // Top of document
11121113 link_t *link; // Link
11131114 uchar *href; // Reference name
11141115 uchar newhref[1024 ]; // New reference name
You can’t perform that action at this time.
0 commit comments