summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2019-06-24 16:49:58 +0200
committerJose <jose@zeroc.com>2019-06-24 17:08:33 +0200
commit6efabff2652c9344f12f9f556ede834d46326759 (patch)
tree33016a76c4888c7938416bb2cc462ed98c6fb4b2 /ruby
parentAdd matlab support to Ice.ClassGraphDepthMax - Close #400 (diff)
downloadice-6efabff2652c9344f12f9f556ede834d46326759.tar.bz2
ice-6efabff2652c9344f12f9f556ede834d46326759.tar.xz
ice-6efabff2652c9344f12f9f556ede834d46326759.zip
Fix Ruby build failure
Diffstat (limited to 'ruby')
-rw-r--r--ruby/src/IceRuby/Types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/src/IceRuby/Types.cpp b/ruby/src/IceRuby/Types.cpp
index 29f79f15ae5..d25cc274331 100644
--- a/ruby/src/IceRuby/Types.cpp
+++ b/ruby/src/IceRuby/Types.cpp
@@ -1012,7 +1012,7 @@ IceRuby::StructInfo::marshal(VALUE p, Ice::OutputStream* os, ObjectMap* objectMa
p = _nullMarshalValue;
}
- Ice::OutputStream::size_type sizePos;
+ Ice::OutputStream::size_type sizePos = 0;
if(optional)
{
if(_variableLength)
@@ -1765,7 +1765,7 @@ IceRuby::DictionaryInfo::marshal(VALUE p, Ice::OutputStream* os, ObjectMap* obje
sz = static_cast<Ice::Int>(RHASH_SIZE(hash));
}
- Ice::OutputStream::size_type sizePos;
+ Ice::OutputStream::size_type sizePos = 0;
if(optional)
{
if(_variableLength)