aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/graph/view3D/stuff3d.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8051a423..73014cda 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2009-08-05 Gabriel Dos Reis <gdr@cs.tamu.edu>
+
+ * graph/view3D/stuff3d.c (norm_dist): Set third coordinate to zero.
+
2009-07-26 Gabriel Dos Reis <gdr@cs.tamu.edu>
* interp/c-doc.boot (checkDecorate): Tidy.
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);
}