texinfo-commits
[Top][All Lists]
Advanced

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

[8103] parsetexi deal with extra string allocation


From: gavinsmith0123
Subject: [8103] parsetexi deal with extra string allocation
Date: Sat, 18 Aug 2018 07:35:36 -0400 (EDT)

Revision: 8103
          http://svn.sv.gnu.org/viewvc/?view=rev&root=texinfo&revision=8103
Author:   gavin
Date:     2018-08-18 07:35:36 -0400 (Sat, 18 Aug 2018)
Log Message:
-----------
parsetexi deal with extra string allocation

Modified Paths:
--------------
    trunk/tp/Texinfo/XS/parsetexi/handle_commands.c
    trunk/tp/Texinfo/XS/parsetexi/separator.c

Modified: trunk/tp/Texinfo/XS/parsetexi/handle_commands.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/handle_commands.c     2018-08-18 11:02:26 UTC 
(rev 8102)
+++ trunk/tp/Texinfo/XS/parsetexi/handle_commands.c     2018-08-18 11:35:36 UTC 
(rev 8103)
@@ -642,7 +642,7 @@
               /* Find the command with "x" stripped from the end, e.g.
                  deffnx -> deffn. */
               base_name = command_name(cmd);
-              add_extra_string (misc, "original_def_cmdname", base_name);
+              add_extra_string_dup (misc, "original_def_cmdname", base_name);
 
               base_name = strdup (base_name);
               base_len = strlen (base_name);

Modified: trunk/tp/Texinfo/XS/parsetexi/separator.c
===================================================================
--- trunk/tp/Texinfo/XS/parsetexi/separator.c   2018-08-18 11:02:26 UTC (rev 
8102)
+++ trunk/tp/Texinfo/XS/parsetexi/separator.c   2018-08-18 11:35:36 UTC (rev 
8103)
@@ -734,7 +734,10 @@
           else
             expandp = 0;
 
-          add_extra_string_dup (current, "format", inline_type);
+          if (inline_type)
+            add_extra_string_dup (current, "format", inline_type);
+          else
+            add_extra_string (current, "format", 0);
 
           /* Skip first argument for a false @inlinefmtifelse */
           if (!expandp && current->cmd == CM_inlinefmtifelse)




reply via email to

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