mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/ossl_ssl.c, ext/openssl/ossl_nsspki.c: should use
"rb_str_new(0, 0)" to make empty string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10034 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9432599e6c
commit
1b3ca9aa3a
3 changed files with 7 additions and 2 deletions
|
@ -168,7 +168,7 @@ ossl_spki_get_challenge(VALUE self)
|
|||
GetSPKI(self, spki);
|
||||
if (spki->spkac->challenge->length <= 0) {
|
||||
OSSL_Debug("Challenge.length <= 0?");
|
||||
return rb_str_new2(NULL);
|
||||
return rb_str_new(0, 0);
|
||||
}
|
||||
|
||||
return rb_str_new(spki->spkac->challenge->data,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue