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

gEDA-cvs: CVS update: s_toplevel.nw



  User: sdb     
  Date: 05/03/11 12:48:43

  Modified:    .        s_toplevel.nw
  Log:
  Added initialization of toplevel_head->next in s_toplevel_init() to
  
  fix possible uninitialized jump in s_toplevel_new(). (Valgrind was 
  
  complainig.)
  
  
  
  
  Revision  Changes    Path
  1.4       +1 -1      eda/geda/devel/libgeda/noweb/s_toplevel.nw
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: s_toplevel.nw
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/devel/libgeda/noweb/s_toplevel.nw,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- s_toplevel.nw	6 Mar 2005 00:00:26 -0000	1.3
  +++ s_toplevel.nw	11 Mar 2005 17:48:43 -0000	1.4
  @@ -97,7 +97,7 @@
   {
     toplevel_head = (TOPLEVEL*)g_new (TOPLEVEL, 1);
     toplevel_head->wid = -1;
  -  
  +  toplevel_head->next = NULL;  
   }
   
   @ %def s_toplevel_init