summaryrefslogtreecommitdiff
path: root/cpp/src/Slice/RubyUtil.cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2006-10-30 16:52:41 +0000
committerDwayne Boone <dwayne@zeroc.com>2006-10-30 16:52:41 +0000
commit36a7bd1bfbec28cb0d3390f4eb59c9a287f6f691 (patch)
treed04f0f212227d8ad2b14069890c353cadf365cb7 /cpp/src/Slice/RubyUtil.cpp
parentFixed bug from previous commit (diff)
downloadice-36a7bd1bfbec28cb0d3390f4eb59c9a287f6f691.tar.bz2
ice-36a7bd1bfbec28cb0d3390f4eb59c9a287f6f691.tar.xz
ice-36a7bd1bfbec28cb0d3390f4eb59c9a287f6f691.zip
Fixed windows crash
Diffstat (limited to 'cpp/src/Slice/RubyUtil.cpp')
-rw-r--r--cpp/src/Slice/RubyUtil.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/Slice/RubyUtil.cpp b/cpp/src/Slice/RubyUtil.cpp
index 3eb6e2c43f3..185aadf23d5 100644
--- a/cpp/src/Slice/RubyUtil.cpp
+++ b/cpp/src/Slice/RubyUtil.cpp
@@ -1687,7 +1687,7 @@ Slice::Ruby::fixIdent(const string& ident, bool checkUpperCase)
for(vector<string>::const_iterator i = ids.begin(); i != ids.end(); ++i)
{
string id = *i;
- if(checkUpperCase)
+ if(checkUpperCase && id.size() != 0)
{
// TODO: Is this the correct way to capitalize Slice identifiers?
if(id[0] >= 'a' && id[0] <= 'z')