texinfo-commits
[Top][All Lists]
Advanced

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

[no subject]


From: Patrice Dumas
Date: Tue, 19 Dec 2023 17:06:36 -0500 (EST)

branch: master
commit 8180569bb16339e54a12154235291768e5d3175f
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Dec 19 22:56:16 2023 +0100

    * tp/Texinfo/XS/convert/get_html_perl_info.c
    (html_converter_initialize_sv): to_convert key in translated direction
    strings can be undef if set through Config.
---
 ChangeLog                                  | 6 ++++++
 tp/Texinfo/XS/convert/get_html_perl_info.c | 3 ++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 715052084e..eeaf9e0b30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-12-19  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/get_html_perl_info.c
+       (html_converter_initialize_sv): to_convert key in translated direction
+       strings can be undef if set through Config.
+
 2023-12-19  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/convert_html.c (html_command_href)
diff --git a/tp/Texinfo/XS/convert/get_html_perl_info.c 
b/tp/Texinfo/XS/convert/get_html_perl_info.c
index 6d14517cdf..84664d0959 100644
--- a/tp/Texinfo/XS/convert/get_html_perl_info.c
+++ b/tp/Texinfo/XS/convert/get_html_perl_info.c
@@ -947,7 +947,8 @@ html_converter_initialize_sv (SV *converter_sv,
 
                       SV **to_convert_sv = hv_fetch (spec_hv, "to_convert",
                                                      strlen ("to_convert"), 0);
-                      if (to_convert_sv)
+                      /* can be undef if set through Config */
+                      if (to_convert_sv && SvOK (*to_convert_sv))
                         {
                           converter
                            
->translated_direction_strings[DS_type][i].to_convert



reply via email to

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