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

gEDA-cvs: gaf.git: branch: master updated (1.7.2-20111231-26-gc6db159)



The branch, master has been updated
       via  c6db15997c306c23c02dec9cc8f1e9a645f03fcb (commit)
      from  2f30211e0b0ae7aaac0b57b50a73331e89402b4f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/src/o_net_basic.c |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit c6db15997c306c23c02dec9cc8f1e9a645f03fcb
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    libgeda: check NULL pointers in o_net_refresh_conn_cache

:100644 100644 323ded6... a71d675... M	libgeda/src/o_net_basic.c

=========
 Changes
=========

commit c6db15997c306c23c02dec9cc8f1e9a645f03fcb
Author: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>
Commit: Krzysztof KoÅ?ciuszkiewicz <k.kosciuszkiewicz@xxxxxxxxx>

    libgeda: check NULL pointers in o_net_refresh_conn_cache

diff --git a/libgeda/src/o_net_basic.c b/libgeda/src/o_net_basic.c
index 323ded6..a71d675 100644
--- a/libgeda/src/o_net_basic.c
+++ b/libgeda/src/o_net_basic.c
@@ -712,9 +712,16 @@ void o_net_refresh_conn_cache(TOPLEVEL *toplevel, OBJECT *o_current)
 
     /* Extract the next connected object and advance the connection list. */
     conn = (CONN*) conn_list->data;
-    obj = conn->other_object;
     stack->data = (gpointer) g_list_next (conn_list);
 
+    if (conn == NULL)
+        /* should not happen */
+        continue;
+    obj = conn->other_object;
+    if (obj == NULL)
+        /* should not happen */
+        continue;
+
     /* Act upon the object that is connected to the segment. */
     switch (obj->type) {
       case OBJ_PIN:



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