[latex3-commits] [git/LaTeX3-latex3-latex2e] master: avoid double allocation (f210c5f)

David Carlisle d.p.carlisle at gmail.com
Sun Mar 25 21:51:59 CEST 2018


Repository : https://github.com/latex3/latex2e
On branch  : master
Link       : https://github.com/latex3/latex2e/commit/f210c5f865e1ce8a8f1ca7972a4862822d5d8324

>---------------------------------------------------------------

commit f210c5f865e1ce8a8f1ca7972a4862822d5d8324
Author: David Carlisle <d.p.carlisle at gmail.com>
Date:   Sun Mar 25 20:51:59 2018 +0100

    avoid double allocation


>---------------------------------------------------------------

f210c5f865e1ce8a8f1ca7972a4862822d5d8324
 base/inputenc.dtx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/base/inputenc.dtx b/base/inputenc.dtx
index 9842c60..4bcc57c 100644
--- a/base/inputenc.dtx
+++ b/base/inputenc.dtx
@@ -689,8 +689,8 @@
 % \changes{v1.1a}{2006/02/22}{Hook added}
 %    Two hooks to be executed before and after an encoding changes happened.
 %    \begin{macrocode}
-\newtoks\inpenc at prehook
-\newtoks\inpenc at posthook
+\ifx\inpenc at prehook\@undefined\newtoks\inpenc at prehook\fi
+\ifx\inpenc at posthook\@undefined\newtoks\inpenc at posthook\fi
 %    \end{macrocode}
 % \end{macro}
 % \end{macro}





More information about the latex3-commits mailing list