summaryrefslogtreecommitdiff
path: root/print/rtf2latex/patches/patch-aa
blob: 0b5e9fbd40e8d6a71bc87b880dc67d140dcef7d3 (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-aa,v 1.1 2006/01/08 00:03:57 joerg Exp $

--- reader.c.orig	2006-01-07 23:52:57.000000000 +0000
+++ reader.c
@@ -118,7 +118,7 @@ static RTFColor	*colorList = (RTFColor *
 static RTFStyle	*styleList = (RTFStyle *) NULL;
 
 
-static FILE	*rtffp = stdin;
+static FILE	*rtffp;
 
 
 /*
@@ -135,6 +135,9 @@ RTFFont		*fp;
 RTFStyle	*sp;
 RTFStyleElt	*eltList, *ep;
 
+	if (rtffp == NULL)
+		rtffp = stdin;
+
 	/* initialize lookup table */
 	LookupInit ();