[Doxygen-develop] [patch] 1.2.14 Segfault
Brought to you by:
dimitri
From: Aric C. <ac...@al...> - 2002-02-27 05:35:39
|
Found a nasty little segfault (v1.2.14) , that was hitting me when I wanted to generate a LaTeX template from a Doxyfile config file. When I used something like: doxygen -w latex header.tex doxygen.sty Doxyfile It would segfault right away. It turned out that a translator wasn't instantiated but LatexGenerator depends on it. I have included the patch below. I have tested the LaTeX part myself, but not the HTML part. Since the code is identical, I assume it would work as well. It is fairly small so it should be easy to verify its correctness. Note that I removed the explicit check if outputLanguage is empty. This does not seem to be needed since setTranslator() would then (correctly) pick "english" as the default. With that isEmpty() check we could end up with an uninstantiated Translator again, since if the string was empty setTranslator() wouldn't get called. Anyways I hope this is useful to other people. -- Aric Cyr <acyr at alumni dot uwaterloo dot ca> |