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

Log Message:
-----------
test to see if malloc succeeded.

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

Modified: brlcad/branches/bottie/src/librt/primitives/bot/tie.c
===================================================================
--- brlcad/branches/bottie/src/librt/primitives/bot/tie.c       2010-10-12 
17:03:26 UTC (rev 40967)
+++ brlcad/branches/bottie/src/librt/primitives/bot/tie.c       2010-10-12 
17:05:34 UTC (rev 40968)
@@ -450,6 +450,8 @@
 
 /* ??? this looks like it might cause fragmentation? use a memory pool? */
        tie->tri_list[tie->tri_num].v = (tfloat *)malloc(2*sizeof(tfloat));
+       if(tie->tri_list[tie->tri_num].v == NULL)
+           bu_log("Bad malloc! %s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__);
        tie->tri_num++;
     }
     return;


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