[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
gEDA-cvs: CVS update: g_hook.c
User: cnieves
Date: 06/07/26 16:11:50
Modified: . g_hook.c
Log:
Added pointer check. Fixes bug reported by Levente.
Revision Changes Path
1.6 +3 -0 eda/geda/gaf/gschem/src/g_hook.c
(In the diff below, changes in quantity of whitespace are not shown.)
Index: g_hook.c
===================================================================
RCS file: /home/cvspsrv/cvsroot/eda/geda/gaf/gschem/src/g_hook.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- g_hook.c 15 Jul 2006 18:51:40 -0000 1.5
+++ g_hook.c 26 Jul 2006 20:11:50 -0000 1.6
@@ -439,6 +439,9 @@
SCM_ASSERT (g_get_data_from_object_smob (object_smob, &w_current, &object),
object_smob, SCM_ARG1, "get-object-pins");
+ if (!object) {
+ return (returned);
+ }
if (object->complex && object->complex->prim_objs) {
prim_obj = object->complex->prim_objs;
while (prim_obj != NULL) {
_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs