Revision: 40969
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40969&view=rev
Author:   erikgreenwald
Date:     2010-10-12 17:06:40 +0000 (Tue, 12 Oct 2010)

Log Message:
-----------
test for bad data field

Modified Paths:
--------------
    brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c

Modified: brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c
===================================================================
--- brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c        
2010-10-12 17:05:34 UTC (rev 40968)
+++ brlcad/branches/bottie/src/librt/primitives/bot/tie_kdtree.c        
2010-10-12 17:06:40 UTC (rev 40969)
@@ -203,6 +203,12 @@
     if (!tie->kdtree) {
        tie->kdtree = (tie_kdtree_t *)bu_malloc(sizeof(tie_kdtree_t), 
__FUNCTION__);
        tie->kdtree->data = (void *)bu_malloc(sizeof(tie_geom_t), __FUNCTION__);
+
+
+       if(tie->kdtree->data == NULL) {
+               bu_log("bad (null) data element: %s:%s:%d\n", 
__FILE__,__FUNCTION__,__LINE__);
+       }
+
        g = ((tie_geom_t *)(tie->kdtree->data));
        g->tri_num = 0;
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to