--- reader.c.orig 1993-07-02 02:13:56.000000000 -0600 +++ reader.c 2009-05-19 00:31:16.000000000 -0600 @@ -118,7 +118,7 @@ static RTFStyle *styleList = (RTFStyle *) NULL; -static FILE *rtffp = stdin; +static FILE *rtffp = NULL; /* @@ -584,6 +584,8 @@ { int c; + if (rtffp == NULL) + rtffp = stdin; if ((c = getc (rtffp)) != EOF) { if (c & 0x80)