mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/openssl/ossl_config.c (Init_ossl_config): removed C99ism.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									5757a872c4
								
							
						
					
					
						commit
						422d6b3d67
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -440,10 +440,11 @@ ossl_config_inspect(VALUE self)
 | 
			
		|||
void
 | 
			
		||||
Init_ossl_config()
 | 
			
		||||
{
 | 
			
		||||
    char *default_config_file;
 | 
			
		||||
    eConfigError = rb_define_class_under(mOSSL, "ConfigError", eOSSLError);
 | 
			
		||||
    cConfig = rb_define_class_under(mOSSL, "Config", rb_cObject);
 | 
			
		||||
 | 
			
		||||
    const char *default_config_file = CONF_get1_default_config_file();
 | 
			
		||||
    default_config_file = CONF_get1_default_config_file();
 | 
			
		||||
    rb_define_const(cConfig, "DEFAULT_CONFIG_FILE",
 | 
			
		||||
		    rb_str_new2(default_config_file));
 | 
			
		||||
    OPENSSL_free(default_config_file);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue