[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [PATCH] Fwd: fix another ruby test failure

From: Peter Samuelson <peter_at_p12n.org>
Date: Fri, 22 Feb 2008 17:06:45 -0600

Here is a patch I forwarded from Roman Zippel some time ago, trivially
ported to current trunk:

  http://svn.haxx.se/dev/archive-2006-09/0536.shtml

-- 
Peter Samuelson | org-tld!p12n!peter | http://p12n.org/
[[[
* subversion/bindings/swig/include/svn_types.swg
  (typemap unsigned char digest[]): Tolerate NULL pointer return from
  svn_md5_digest_to_cstring().
Patch by: Roman Zippel <zippel_at_linux-m68k.org>
Tweaked by: Peter Samuelson <peter_at_p12n.org>
]]]
Index: subversion/bindings/swig/include/svn_types.swg
===================================================================
--- subversion/bindings/swig/include/svn_types.swg	(revisione 29494)
+++ subversion/bindings/swig/include/svn_types.swg	(copia locale)
@@ -1044,7 +1044,7 @@
 #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
 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-02-23 00:06:56 CET

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.