subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james...@apache.org
Subject svn commit: r1811786 - /subversion/trunk/subversion/bindings/swig/include/svn_types.swg
Date Wed, 11 Oct 2017 03:08:19 GMT
Author: jamessan
Date: Wed Oct 11 03:08:19 2017
New Revision: 1811786

URL: http://svn.apache.org/viewvc?rev=1811786&view=rev
Log:
* subversion/bindings/swig/include/svn_types.swg:
  (unsigned char digest typemap): When svn_md5_digest_to_cstring() returns NULL,
    pass an empty string to rb_str_new2().

Modified:
    subversion/trunk/subversion/bindings/swig/include/svn_types.swg

Modified: subversion/trunk/subversion/bindings/swig/include/svn_types.swg
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/bindings/swig/include/svn_types.swg?rev=1811786&r1=1811785&r2=1811786&view=diff
==============================================================================
--- subversion/trunk/subversion/bindings/swig/include/svn_types.swg (original)
+++ subversion/trunk/subversion/bindings/swig/include/svn_types.swg Wed Oct 11 03:08:19 2017
@@ -1107,7 +1107,7 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE se
 #ifdef SWIGRUBY
 %typemap(argout) unsigned char digest[ANY] {
   char *digest_string = (char *)svn_md5_digest_to_cstring($1, _global_pool);
-  %append_output(rb_str_new2(digest_string));
+  %append_output(rb_str_new2(digest_string ? digest_string : ""));
 }
 #endif
 



Mime
View raw message