diff options
Diffstat (limited to 'desktop/source/app/main.c')
-rw-r--r-- | desktop/source/app/main.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/desktop/source/app/main.c b/desktop/source/app/main.c index ae016b498297..c18fabd158d2 100644 --- a/desktop/source/app/main.c +++ b/desktop/source/app/main.c @@ -25,4 +25,18 @@ SAL_IMPLEMENT_MAIN() { return soffice_main(); } +#ifdef DBG_UTIL +#ifdef __gnu_linux__ +#include <stdio.h> +#include <stdlib.h> + +/* HACK: detect calls to xmlCleanupParser, which causes hard to debug crashes */ +__attribute__ ((visibility("default"))) void xmlCleanupParser(void) +{ + fprintf(stderr, "\n*** ERROR: DO NOT call xmlCleanupParser()\n\n"); + abort(); +} +#endif +#endif + /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |