texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Thu, 11 Jan 2024 16:01:00 -0500 (EST)

branch: master
commit 407aa4938b1d89bcbfdf3aa886e9ffbdf51c0223
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Jan 11 21:23:10 2024 +0100

    * tp/Texinfo/XS/convert/indices_in_conversion.c
    (index_entry_element_sort_string): always initialize returned text to
    the empty string.
---
 ChangeLog                                     | 6 ++++++
 tp/Texinfo/XS/convert/indices_in_conversion.c | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 0ca61df01b..00232223dc 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-01-11  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/indices_in_conversion.c
+       (index_entry_element_sort_string): always initialize returned text to
+       the empty string.
+
 2024-01-11  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/Convert/Converter.pm (xml_accent),
diff --git a/tp/Texinfo/XS/convert/indices_in_conversion.c 
b/tp/Texinfo/XS/convert/indices_in_conversion.c
index 8f05f58e61..216a2f3cc1 100644
--- a/tp/Texinfo/XS/convert/indices_in_conversion.c
+++ b/tp/Texinfo/XS/convert/indices_in_conversion.c
@@ -196,6 +196,9 @@ index_entry_element_sort_string (INDEX_ENTRY *main_entry,
       TEXT sort_string_text;
       char *p = sort_string;
       text_init (&sort_string_text);
+      /* to be consistent with convert_to_text, which returned variable is
+         never NUL */
+      text_append (&sort_string_text, "");
 
       while (*p)
         {



reply via email to

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