about summary refs log tree commit diff
path: root/src/rt
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2011-08-09 15:15:43 -0700
committerPatrick Walton <pcwalton@mimiga.net>2011-08-09 17:02:17 -0700
commit1e1125fcbe83aafdbbfdcd0338abe01fee1d5d99 (patch)
tree84aafb125b127dc22b027f9fe66f900779d56d26 /src/rt
parent5d9680fc7e97b57527c4a94d2bba32aeff4a195e (diff)
downloadrust-1e1125fcbe83aafdbbfdcd0338abe01fee1d5d99.tar.gz
rust-1e1125fcbe83aafdbbfdcd0338abe01fee1d5d99.zip
rt: Initialize "result" in all constructors for cmp
Diffstat (limited to 'src/rt')
-rw-r--r--src/rt/rust_shape.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rt/rust_shape.cpp b/src/rt/rust_shape.cpp
index 6e6d8fd4b09..69ac5fdb433 100644
--- a/src/rt/rust_shape.cpp
+++ b/src/rt/rust_shape.cpp
@@ -1063,7 +1063,8 @@ public:
                          in_sp ? in_sp : other.sp,
                          in_params ? in_params : other.params,
                          in_tables ? in_tables : other.tables,
-                         other.dp) {}
+                         other.dp),
+      result(0) {}
 
     cmp(const cmp &other, const ptr_pair &in_dp)
     : data<cmp,ptr_pair>(other.task, other.sp, other.params, other.tables,