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

gEDA-cvs: CVS update: o_attrib.c



  User: werner  
  Date: 06/08/30 13:33:22

  Modified:    .        o_attrib.c
  Log:
  bugfix for bug#1547138: Segfault on adding toplevel slot attribute to symbol
  
  
  
  
  Revision  Changes    Path
  1.40      +5 -3      eda/geda/gaf/libgeda/src/o_attrib.c
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: o_attrib.c
  ===================================================================
  RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/libgeda/src/o_attrib.c,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -b -r1.39 -r1.40
  --- o_attrib.c	6 Aug 2006 16:45:31 -0000	1.39
  +++ o_attrib.c	30 Aug 2006 17:33:22 -0000	1.40
  @@ -1912,11 +1912,13 @@
    */
   char *o_attrib_search_numslots(OBJECT *object, OBJECT **return_found)
   {
  -  char *return_value;
  +  char *return_value = NULL;
   
     /* search for numslots attribute buried inside the complex */
  +  if (object->type == OBJ_COMPLEX) {
     return_value = o_attrib_search_name(object->complex->prim_objs, 
                                         "numslots", 0);
  +  }
   
     if (return_value) {
       return(return_value);
  
  
  


_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs