aboutsummaryrefslogtreecommitdiff
path: root/src/graph
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2009-08-05 09:45:13 +0000
committerdos-reis <gdr@axiomatics.org>2009-08-05 09:45:13 +0000
commitb62e2878ca1013394d8cb3b851c04553d12be8a3 (patch)
tree9318cef5dbc2588b611d8e0971d8a995214e9fc9 /src/graph
parentbff72ecab3900add29892dc64d98936c0424a609 (diff)
downloadopen-axiom-b62e2878ca1013394d8cb3b851c04553d12be8a3.tar.gz
* graph/view3D/stuff3d.c (norm_dist): Set third coordinate to zero.
Diffstat (limited to 'src/graph')
-rw-r--r--src/graph/view3D/stuff3d.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/graph/view3D/stuff3d.c b/src/graph/view3D/stuff3d.c
index 8858be42..d68b0785 100644
--- a/src/graph/view3D/stuff3d.c
+++ b/src/graph/view3D/stuff3d.c
@@ -125,6 +125,7 @@ norm_dist(void)
rad = -2.0*log(ss)/ss;
pert.x = v1 * sqrt(rad);
pert.y = v2 * sqrt(rad);
+ pert.z = 0; /* Don't leave uninitialized. */
return(pert);
}