aboutsummaryrefslogtreecommitdiff
path: root/src/graph/view3D/stuff3d.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph/view3D/stuff3d.c')
-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);
}