Revision: 54985
          http://brlcad.svn.sourceforge.net/brlcad/?rev=54985&view=rev
Author:   brlcad
Date:     2013-03-30 02:18:34 +0000 (Sat, 30 Mar 2013)
Log Message:
-----------
quellage, set gpp fully so we don't access uninitialized elements

Modified Paths:
--------------
    brlcad/trunk/src/libtclcad/tclcad_obj.c

Modified: brlcad/trunk/src/libtclcad/tclcad_obj.c
===================================================================
--- brlcad/trunk/src/libtclcad/tclcad_obj.c     2013-03-30 02:09:23 UTC (rev 
54984)
+++ brlcad/trunk/src/libtclcad/tclcad_obj.c     2013-03-30 02:18:34 UTC (rev 
54985)
@@ -3354,8 +3354,10 @@
     register size_t j = 0, k = 0;
 
     gpp->gp_num_contours = contour_ac;
+    gpp->gp_hole = NULL;
+    gpp->gp_contour = NULL;
 
-    if (!contour_ac)
+    if (contour_ac == 0)
        return GED_OK;
 
     gpp->gp_hole = (int *)bu_calloc(contour_ac, sizeof(int), "gp_hole");

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


------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to