[前][次][番号順一覧][スレッド一覧]

ruby-changes:33393

From: nagachika <ko1@a...>
Date: Sun, 30 Mar 2014 23:50:48 +0900 (JST)
Subject: [ruby-changes:33393] nagachika:r45472 (ruby_2_0_0): merge revision(s) r45271: [Backport #9592] [Backport #9670]

nagachika	2014-03-30 23:50:41 +0900 (Sun, 30 Mar 2014)

  New Revision: 45472

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45472

  Log:
    merge revision(s) r45271: [Backport #9592] [Backport #9670]
    
    * ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
      error reasons with old OpenSSL, and insert a colon iff formatted
      message is not empty.

  Modified directories:
    branches/ruby_2_0_0/
  Modified files:
    branches/ruby_2_0_0/ChangeLog
    branches/ruby_2_0_0/ext/openssl/ossl.c
    branches/ruby_2_0_0/version.h
Index: ruby_2_0_0/ChangeLog
===================================================================
--- ruby_2_0_0/ChangeLog	(revision 45471)
+++ ruby_2_0_0/ChangeLog	(revision 45472)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ChangeLog#L1
+Sun Mar 30 23:49:21 2014  Nobuyoshi Nakada  <nobu@r...>
+
+	* ext/openssl/ossl.c (ossl_make_error): check NULL for unknown
+	  error reasons with old OpenSSL, and insert a colon iff formatted
+	  message is not empty.
+
 Thu Mar 20 21:13:18 2014  Eric Wong  <e@8...>
 
 	* variable.c (rb_const_set): delete existing entry on redefinition
Index: ruby_2_0_0/ext/openssl/ossl.c
===================================================================
--- ruby_2_0_0/ext/openssl/ossl.c	(revision 45471)
+++ ruby_2_0_0/ext/openssl/ossl.c	(revision 45472)
@@ -311,10 +311,11 @@ ossl_make_error(VALUE exc, const char *f https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/ext/openssl/ossl.c#L311
 	else
 	    msg = ERR_reason_error_string(e);
 	if (NIL_P(str)) {
-	    str = rb_str_new_cstr(msg);
+	    if (msg) str = rb_str_new_cstr(msg);
 	}
 	else {
-	    rb_str_cat2(rb_str_cat2(str, ": "), msg);
+	    if (RSTRING_LEN(str)) rb_str_cat2(str, ": ");
+	    rb_str_cat2(str, msg ? msg : "(null)");
 	}
     }
     if (dOSSL == Qtrue){ /* show all errors on the stack */
Index: ruby_2_0_0/version.h
===================================================================
--- ruby_2_0_0/version.h	(revision 45471)
+++ ruby_2_0_0/version.h	(revision 45472)
@@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1
 #define RUBY_VERSION "2.0.0"
-#define RUBY_RELEASE_DATE "2014-03-22"
-#define RUBY_PATCHLEVEL 462
+#define RUBY_RELEASE_DATE "2014-03-30"
+#define RUBY_PATCHLEVEL 463
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 3
-#define RUBY_RELEASE_DAY 22
+#define RUBY_RELEASE_DAY 30
 
 #include "ruby/version.h"
 

Property changes on: ruby_2_0_0
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r45271


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]