* transcode.c: in transcode_search_path, elimintated a warning

on cygwin about pathlen potentially not being initialized


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
duerst 2008-10-18 07:41:09 +00:00
Родитель de55ffd024
Коммит da1ffe490d
2 изменённых файлов: 7 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,8 @@
Tue Oct 14 16:39:39 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
* transcode.c: in transcode_search_path, elimintated a warning
on cygwin about pathlen potentially not being initialized
Sat Oct 18 13:40:27 2008 Tanaka Akira <akr@fsij.org>
* lib/test/unit.rb (assert_nothing_thrown): implemented.

Просмотреть файл

@ -277,7 +277,7 @@ transcode_search_path(const char *sname, const char *dname,
st_data_t val;
st_table *table2;
int found;
int pathlen;
int pathlen = -1;
if (encoding_equal(sname, dname))
return -1;
@ -349,10 +349,7 @@ transcode_search_path(const char *sname, const char *dname,
st_free_table(bfs.visited);
if (found)
return pathlen;
else
return -1;
return pathlen; /* is -1 if !found */
}
static const rb_transcoder *