mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic
string to rb_raise directly. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									c483dcea7d
								
							
						
					
					
						commit
						7aa4c13360
					
				
					 2 changed files with 6 additions and 1 deletions
				
			
		|  | @ -1,3 +1,8 @@ | |||
| Tue Jul 13 20:46:00 2010  Nobuyoshi Nakada  <nobu@ruby-lang.org> | ||||
| 
 | ||||
| 	* ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic | ||||
| 	          string to rb_raise directly. | ||||
| 
 | ||||
| Tue Jul 13 12:04:57 2010  NARUSE, Yui  <naruse@ruby-lang.org> | ||||
| 
 | ||||
| 	* missing/close.c: keep original errno. | ||||
|  |  | |||
|  | @ -70,7 +70,7 @@ rb_dlhandle_close(VALUE self) | |||
| 	/* Check dlclose for successful return value */ | ||||
| 	if(ret) { | ||||
| #if defined(HAVE_DLERROR) | ||||
| 	    rb_raise(rb_eDLError, dlerror()); | ||||
| 	    rb_raise(rb_eDLError, "%s", dlerror()); | ||||
| #else | ||||
| 	    rb_raise(rb_eDLError, "could not close handle"); | ||||
| #endif | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 nobu
						nobu