enscript-catmur.patch 604 B

123456789101112131415161718192021222324252627
  1. --- src/main.c 2005/11/04 11:02:27 1.1
  2. +++ src/main.c 2005/11/04 11:16:28
  3. @@ -1695,7 +1695,7 @@ name width\theight\tllx\tlly
  4. }
  5. /* Table of Contents. */
  6. - if (toc)
  7. + if (ofp != NULL && toc)
  8. {
  9. /* This is really cool... */
  10. @@ -1714,9 +1714,11 @@ name width\theight\tllx\tlly
  11. process_file (_("Table of Contents"), &is, 1);
  12. is_close (&is);
  13. }
  14. -
  15. - /* Clean up toc file. */
  16. - fclose (toc_fp);
  17. + else
  18. + {
  19. + /* Clean up toc file. */
  20. + fclose (toc_fp);
  21. + }
  22. }
  23. /* Give trailer a chance to dump itself. */