[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Patrice Dumas |
Date: |
Sun, 29 Sep 2024 04:02:56 -0400 (EDT) |
branch: master
commit d9044315ccc62e7231817b35e711718214080831
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jun 8 11:42:12 2024 +0200
* tp/Texinfo/XS/main/tree.c (destroy_element_and_children): fix
condition (found with valgrind).
---
ChangeLog | 5 +++++
tp/Texinfo/XS/main/tree.c | 2 +-
tp/Texinfo/XS/parsetexi/separator.c | 1 -
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9d38efb150..305f596f1a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-08 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/XS/main/tree.c (destroy_element_and_children): fix
+ condition (found with valgrind).
+
2024-06-08 Patrice Dumas <pertusus@free.fr>
* tp/Texinfo/XS/main/build_perl_info.c (element_to_perl_hash),
diff --git a/tp/Texinfo/XS/main/tree.c b/tp/Texinfo/XS/main/tree.c
index 6790ba3bbf..16a11e417b 100644
--- a/tp/Texinfo/XS/main/tree.c
+++ b/tp/Texinfo/XS/main/tree.c
@@ -240,7 +240,7 @@ destroy_element_and_children (ELEMENT *e)
{
int i;
- if (! type_data[e->type].flags & TF_text)
+ if (! (type_data[e->type].flags & TF_text))
{
for (i = 0; i < e->c->contents.number; i++)
destroy_element_and_children (e->c->contents.list[i]);
diff --git a/tp/Texinfo/XS/parsetexi/separator.c
b/tp/Texinfo/XS/parsetexi/separator.c
index 762454f594..064499a757 100644
--- a/tp/Texinfo/XS/parsetexi/separator.c
+++ b/tp/Texinfo/XS/parsetexi/separator.c
@@ -590,7 +590,6 @@ handle_close_brace (ELEMENT *current, const char
**line_inout)
{
ELEMENT *e;
e = new_text_element (ET_spaces_after_close_brace);
- text_append (e->text, "");
add_to_element_contents (current->parent->parent, e);
}
- master updated (61cfca59c3 -> 59ddbc416b), Patrice Dumas, 2024/09/29
- [no subject], Patrice Dumas, 2024/09/29
- [no subject], Patrice Dumas, 2024/09/29
- [no subject],
Patrice Dumas <=
- [no subject], Patrice Dumas, 2024/09/29
- [no subject], Patrice Dumas, 2024/09/29
- [no subject], Patrice Dumas, 2024/09/29