texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]


From: Patrice Dumas
Date: Sun, 29 Sep 2024 07:29:42 -0400 (EDT)

branch: master
commit 4fda3ba9fc34f7afacbfd9c0e7ba607e6a782b58
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Jun 22 16:58:32 2024 +0200

    * tp/Texinfo/XS/parsetexi/parser.c (text_contents_to_plain_text): do
    not check that the element is not NULL, it should never happen.
---
 ChangeLog                        | 5 +++++
 tp/Texinfo/XS/parsetexi/parser.c | 4 ----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 413c526cbc..e4ea3fb213 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-06-22  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/parsetexi/parser.c (text_contents_to_plain_text): do
+       not check that the element is not NULL, it should never happen.
+
 2024-06-22  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/parsetexi/parser.c (is_end_current_command): remove
diff --git a/tp/Texinfo/XS/parsetexi/parser.c b/tp/Texinfo/XS/parsetexi/parser.c
index 74af809e5d..c3988ad229 100644
--- a/tp/Texinfo/XS/parsetexi/parser.c
+++ b/tp/Texinfo/XS/parsetexi/parser.c
@@ -204,10 +204,6 @@ text_contents_to_plain_text (ELEMENT *e, int 
*superfluous_arg)
 
   TEXT result; int i;
 
-  /* FIXME check if that can happen, probably not.  If yes, the
-     string should be strdup'ed */
-  if (!e)
-    return "";
   text_init (&result);
   for (i = 0; i < e->e.c->contents.number; i++)
     {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]