Revision: 54556
http://brlcad.svn.sourceforge.net/brlcad/?rev=54556&view=rev
Author: r_weiss
Date: 2013-03-07 17:55:49 +0000 (Thu, 07 Mar 2013)
Log Message:
-----------
Fixed ADD_PT macro in libged "analyze.c". This prevents a seg fault when
running analyze on an ARB8.
Modified Paths:
--------------
brlcad/trunk/src/libged/analyze.c
Modified: brlcad/trunk/src/libged/analyze.c
===================================================================
--- brlcad/trunk/src/libged/analyze.c 2013-03-07 06:27:54 UTC (rev 54555)
+++ brlcad/trunk/src/libged/analyze.c 2013-03-07 17:55:49 UTC (rev 54556)
@@ -84,7 +84,7 @@
#define POLY_FACE_INIT_ZERO { { 0, 0, 0, 0, 0 }, 0, NULL, HINIT_ZERO, 0.0 }
-#define ADD_PT(face, pt) VMOVE((face).pts[(face).npts++], (pt))
+#define ADD_PT(face, pt) { VMOVE((face).pts[(face).npts], (pt));
(face).npts++; }
/* structures and subroutines for analyze pretty printing */
@@ -843,7 +843,7 @@
int cgtype; /* COMGEOM arb type: # of vertices */
table_t table; /* holds table data from child functions */
fastf_t tot_vol = 0.0, tot_area = 0.0;
- point_t center_pt;
+ point_t center_pt = VINIT_ZERO;
struct poly_face face = POLY_FACE_INIT_ZERO;
struct rt_arb_internal earb;
struct rt_arb_internal *arb = (struct rt_arb_internal *)ip->idb_ptr;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
endpoint security space. For insight on selecting the right partner to
tackle endpoint security challenges, access the full report.
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits