lib/common/debug.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
--- xmhtml-1.1.7.orig/lib/common/debug.c
+++ xmhtml-1.1.7/lib/common/debug.c
@@ -110,7 +110,7 @@
/*** Private Function Prototype Declarations ****/
/*** Private Variable Declarations ***/
-static FILE *__rsd_debug_file = stdout;
+static FILE *__rsd_debug_file;
/*****
* When debug output is send to a file, we register an exit func to close
@@ -180,6 +180,8 @@
{
int i;
+ __rsd_debug_file = stdout;
+
for(i = 0 ; i < MAX_DEBUG_LEVELS+1; i++)
__rsd__debug_levels_defined[i] = 0;