ruby-changes:8302
From: duerst <ko1@a...>
Date: Sat, 18 Oct 2008 16:41:26 +0900 (JST)
Subject: [ruby-changes:8302] Ruby:r19830 (trunk): * transcode.c: in transcode_search_path, elimintated a warning
duerst 2008-10-18 16:41:09 +0900 (Sat, 18 Oct 2008) New Revision: 19830 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=19830 Log: * transcode.c: in transcode_search_path, elimintated a warning on cygwin about pathlen potentially not being initialized Modified files: trunk/ChangeLog trunk/transcode.c Index: ChangeLog =================================================================== --- ChangeLog (revision 19829) +++ ChangeLog (revision 19830) @@ -1,3 +1,8 @@ +Tue Oct 14 16:39:39 2008 Martin Duerst <duerst@i...> + + * 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@f...> * lib/test/unit.rb (assert_nothing_thrown): implemented. Index: transcode.c =================================================================== --- transcode.c (revision 19829) +++ transcode.c (revision 19830) @@ -277,7 +277,7 @@ 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 @@ st_free_table(bfs.visited); - if (found) - return pathlen; - else - return -1; + return pathlen; /* is -1 if !found */ } static const rb_transcoder * -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/