[tex4ht-commits] [SCM] tex4ht updated: r417 - trunk/lit

karl at gnu.org.ua karl at gnu.org.ua
Sun Jul 1 00:36:42 CEST 2018


Author: karl
Date: 2018-07-01 01:36:42 +0300 (Sun, 01 Jul 2018)
New Revision: 417

Modified:
   trunk/lit/ChangeLog
   trunk/lit/tex4ht-c.tex
Log:
do not dereference if file already closed

Modified: trunk/lit/ChangeLog
===================================================================
--- trunk/lit/ChangeLog	2018-06-29 18:17:50 UTC (rev 416)
+++ trunk/lit/ChangeLog	2018-06-30 22:36:42 UTC (rev 417)
@@ -1,3 +1,9 @@
+2018-06-30  Karl Berry  <karl at freefriends.org>
+
+	* tex4ht-c.tex (close tex4ht file): don't try to dereference
+	null pointers if file is not open. (Why it's not open, I don't know.)
+	Report from Nasser Abbasi, 25 May 2018 20:11:20 ff.
+
 2018-06-29  Karl Berry  <karl at freefriends.org>
 
 	* tex4ht-c.tex (command line options): mention A in option summary

Modified: trunk/lit/tex4ht-c.tex
===================================================================
--- trunk/lit/tex4ht-c.tex	2018-06-29 18:17:50 UTC (rev 416)
+++ trunk/lit/tex4ht-c.tex	2018-06-30 22:36:42 UTC (rev 417)
@@ -4430,12 +4430,14 @@
 
 \<close tex4ht file\><<<
 if( p == (struct files_rec *)  0 ) bad_special( name );
+else { /* if p is null, do nothing more */
 `<fix pointers around file to be closed`>
 if( opened_files !=  (struct files_rec*) 0 )
   { if( out_file == p->file )  out_file = opened_files->file; }
 else out_file = (FILE *) 0;
 (IGNORED) fclose( p->file );   free((void *)  p->name );   
 free((void *) p );
+}
 >>>
 
 
@@ -4462,7 +4464,7 @@
 
 
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-\SubSection{Backup to Previou File}
+\SubSection{Backup to Previous File}
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
 
 \<back up to previous output file\><<<



More information about the tex4ht-commits mailing list