[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: CVS update: s_log.nw



  User: ahvezda 
  Date: 05/10/30 17:15:14

  Modified:    .        s_log.nw
  Log:
  Fixed a core dump if the gschem.log file isn't writable.  Also removed 
  
  unnecessary gschem/configure.ac checks  
  
  
  
  
  Revision  Changes    Path
  1.10      +5 -0      eda/geda/devel/libgeda/noweb/s_log.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_log.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/s_log.nw,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -b -r1.9 -r1.10
  --- s_log.nw	20 Feb 2005 17:05:43 -0000	1.9
  +++ s_log.nw	30 Oct 2005 22:15:14 -0000	1.10
  @@ -158,6 +158,11 @@
   {
     do_logging = FALSE; /* subsequent messages are lost after the close */
   
  +  if (logfile_fd == -1)
  +  {
  +    return;
  +  }
  +
     /* remove the handler */
     g_log_remove_handler (NULL, log_handler_id);