* transcode.c (rb_econv_open): make ec a local variable.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-09-08 16:11:32 +00:00
parent 4106a7c067
commit 65110d6464
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Sep 9 01:10:54 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (rb_econv_open): make ec a local variable.
Tue Sep 9 00:20:10 2008 Tanaka Akira <akr@fsij.org>
* transcode.c (rb_econv_asciicompat_encoding): check decoder.

View File

@ -885,7 +885,7 @@ rb_econv_open(const char *sname, const char *dname, int ecflags)
{
transcoder_entry_t **entries = NULL;
int num_trans;
static rb_econv_t *ec;
rb_econv_t *ec;
rb_encoding *senc, *denc;
int sidx, didx;