enscript:moved into main for pisi 2.0

This commit is contained in:
2015-10-29 00:17:31 +03:00
parent 5de873f662
commit 89c0213664
10 changed files with 719 additions and 0 deletions
@@ -0,0 +1,26 @@
--- src/main.c 2005/11/04 11:02:27 1.1
+++ src/main.c 2005/11/04 11:16:28
@@ -1695,7 +1695,7 @@ name width\theight\tllx\tlly
}
/* Table of Contents. */
- if (toc)
+ if (ofp != NULL && toc)
{
/* This is really cool... */
@@ -1714,9 +1714,11 @@ name width\theight\tllx\tlly
process_file (_("Table of Contents"), &is, 1);
is_close (&is);
}
-
- /* Clean up toc file. */
- fclose (toc_fp);
+ else
+ {
+ /* Clean up toc file. */
+ fclose (toc_fp);
+ }
}
/* Give trailer a chance to dump itself. */