summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c
diff options
context:
space:
mode:
Diffstat (limited to 'macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c')
-rw-r--r--macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c b/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c
index 35051094e0..f1dbc521f5 100644
--- a/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c
+++ b/macros/texinfo/texinfo/tp/Texinfo/XS/parsetexi/indices.c
@@ -42,7 +42,7 @@ associate_command_to_index (enum command_id cmd, INDEX *idx)
cmd_to_idx = realloc (cmd_to_idx,
sizeof (CMD_TO_IDX) * (cmd_to_idx_space += 10));
if (!cmd_to_idx)
- abort ();
+ fatal ("no index for command");
}
cmd_to_idx[num_index_commands].cmd = cmd;
@@ -284,7 +284,7 @@ enter_index_entry (enum command_id index_type_command,
idx->index_entries = realloc (idx->index_entries,
sizeof (INDEX_ENTRY) * (idx->index_space += 20));
if (!idx->index_entries)
- abort ();
+ fatal ("realloc failed");
}
entry = &idx->index_entries[idx->index_number++];
memset (entry, 0, sizeof (INDEX_ENTRY));