mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* 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:
		
							parent
							
								
									de55ffd024
								
							
						
					
					
						commit
						da1ffe490d
					
				
					 2 changed files with 7 additions and 5 deletions
				
			
		| 
						 | 
				
			
			@ -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 *
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue