* file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() on

half-baked result string.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2008-04-14 13:45:26 +00:00
parent ac5b69acb8
commit 755a86b87a
2 changed files with 6 additions and 2 deletions

3
file.c
View file

@ -2553,8 +2553,7 @@ rb_path_end(const char *path)
#define SET_EXTERNAL_ENCODING() (\
(void)(extenc || (extenc = rb_default_external_encoding())),\
rb_enc_associate(result, extenc),\
rb_enc_check(fname, result))
rb_enc_associate(result, extenc))
static int is_absolute_path(const char*);