$NetBSD: patch-aj,v 1.1 2006/01/08 20:52:57 joerg Exp $ --- rtf2text/text-writer.c.orig 2006-01-08 20:50:34.000000000 +0000 +++ rtf2text/text-writer.c @@ -53,7 +53,7 @@ static void PutLitStr (); static char *outMap[rtfSC_MaxChar]; -static FILE *ostream = stdout; +static FILE *ostream; /* @@ -63,6 +63,9 @@ static FILE *ostream = stdout; void WriterInit () { + if (ostream == NULL) + ostream = stdout; + if (RTFReadOutputMap (outputMapName, outMap, 1) == 0) RTFPanic ("Cannot read output map %s", outputMapName); }