* 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().
@@ -1107,7 +1107,7 @@ svn_ ## TYPE ## _swig_rb_closed(VALUE self)
#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
