summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-30 07:39:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-30 07:39:10 +0000
commit4119b5485447dda2ca84807f6a200e5cb04ee307 (patch)
treee8cd079b751d5c20e28502a0f96a01637e048334 /parse.y
parentab0d1d27920d10c71a9216490d929e351be32e69 (diff)
* parse.y (rb_enc_symname2_p): not depend on nul terminator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24714 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 9ebdaeb4b9..0906919b92 100644
--- a/parse.y
+++ b/parse.y
@@ -9351,7 +9351,7 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
}
break;
}
- return *m ? Qfalse : Qtrue;
+ return m == e;
}
static ID