[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: s_string_list.c
User: ahvezda
Date: 07/04/15 23:00:28
Modified: . s_string_list.c
Log:
Added missing test to prevent a seg fault when loading up a schematic with missing attributes.
Revision Changes Path
1.9 +4 -2 eda/geda/gaf/gattrib/src/s_string_list.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: s_string_list.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gattrib/src/s_string_list.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- s_string_list.c 10 Feb 2007 15:09:22 -0000 1.8
+++ s_string_list.c 16 Apr 2007 03:00:28 -0000 1.9
@@ -378,12 +378,14 @@
int i;
p->pos = DEFAULT_ATTRIB_POS;
for (i=0; i<NUM_CERTAINS; i++)
+ if (p->data != NULL) {
if (strcmp (certain_attribs[i].attrib, p->data) == 0)
{
p->pos = certain_attribs[i].pos;
break;
}
}
+ }
local_list = listsort(local_list, 0, 1);
sheet_head->master_comp_attrib_list_head = local_list;
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs