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

gEDA-cvs: CVS update: x_log.nw



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

  Modified:    .        x_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.21      +7 -0      eda/geda/devel/gschem/noweb/x_log.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: x_log.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/gschem/noweb/x_log.nw,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -b -r1.20 -r1.21
  --- x_log.nw	5 Aug 2005 02:49:48 -0000	1.20
  +++ x_log.nw	30 Oct 2005 22:15:14 -0000	1.21
  @@ -116,6 +116,13 @@
       /* make it read the content of the current log file */
       /* and add its contents to the dialog */
       contents = s_log_read ();
  +
  +    /* s_log_read can return NULL if the log file cannot be written to */
  +    if (contents == NULL)
  +    {
  +      return;
  +    }
  +
       log_message (LOG (log_dialog), contents);
       g_free (contents);