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

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-155-ge9a15f5)



The branch, master has been updated
       via  e9a15f504113e61933fc8ffadc4941b976dabfbb (commit)
      from  4c335d84aed6c972899de27c7d9d4249aec6761d (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_list.c |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)


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

commit e9a15f504113e61933fc8ffadc4941b976dabfbb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Mon Aug 25 01:03:55 2008 +0100

    libgeda: Make o_list_search() emit warnings if passed NULL pointers

:100644 100644 343b535... e1b72e3... M	libgeda/src/o_list.c

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

commit e9a15f504113e61933fc8ffadc4941b976dabfbb
Author: Peter Clifton <pcjc2@xxxxxxxxx>
Date:   Mon Aug 25 01:03:55 2008 +0100

    libgeda: Make o_list_search() emit warnings if passed NULL pointers

diff --git a/libgeda/src/o_list.c b/libgeda/src/o_list.c
index 343b535..e1b72e3 100644
--- a/libgeda/src/o_list.c
+++ b/libgeda/src/o_list.c
@@ -378,13 +378,8 @@ OBJECT *o_list_search(OBJECT *list, OBJECT *current)
 
   o_current = list ;
 
-  if (current == NULL) {
-    return(NULL);
-  }
-
-  if (list == NULL) {
-    return(NULL);
-  }
+  g_return_val_if_fail (current != NULL, NULL);
+  g_return_val_if_fail (list != NULL, NULL);
 
   while(o_current != NULL) {
     /* look for uniq sid */




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