blob: d6b951532befc103165ef84579a275214fbf7861 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
$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);
}
|