Revision: 65515
          http://sourceforge.net/p/brlcad/code/65515
Author:   starseeker
Date:     2015-07-01 19:52:39 +0000 (Wed, 01 Jul 2015)
Log Message:
-----------
If we got nothing, just return

Modified Paths:
--------------
    brlcad/trunk/src/librt/screened_poisson.cpp

Modified: brlcad/trunk/src/librt/screened_poisson.cpp
===================================================================
--- brlcad/trunk/src/librt/screened_poisson.cpp 2015-07-01 19:30:04 UTC (rev 
65514)
+++ brlcad/trunk/src/librt/screened_poisson.cpp 2015-07-01 19:52:39 UTC (rev 
65515)
@@ -245,6 +245,8 @@
        }
     }
 
+    if (!out_cnt) return 1;
+
     struct rt_vert **rt_verts = (struct rt_vert **)bu_calloc(out_cnt, 
sizeof(struct rt_vert *), "output array");
     int curr_ind = 0;
     for (i = 0; i < ncpus+1; i++) {

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


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to