diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 16:18:40 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-07-30 16:18:40 +0000 |
commit | cf0866114160d00a2ad8121b50a5713be13fa920 (patch) | |
tree | b91ccfc54b335bbbe32b814afbde845781af741c | |
parent | d07b0842393d12fcfe2e2b217dc16e31e69b6c1c (diff) | |
download | ruby-cf0866114160d00a2ad8121b50a5713be13fa920.tar.gz |
* parse.y (magic_comment_encoding): remove meaningless null check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Jul 31 01:18:07 2008 Yusuke Endoh <mame@tsg.ne.jp> + + * parse.y (magic_comment_encoding): remove meaningless null check. + Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp> * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology @@ -5805,7 +5805,7 @@ typedef void (*rb_magic_comment_setter_t)(struct parser_params *parser, const ch static void magic_comment_encoding(struct parser_params *parser, const char *name, const char *val) { - if (parser && parser->line_count != (parser->has_shebang ? 2 : 1)) + if (parser->line_count != (parser->has_shebang ? 2 : 1)) return; parser_set_encode(parser, val); } |