[macruby-changes] [4019] MacRuby/trunk/proc.c

source_changes at macosforge.org source_changes at macosforge.org
Tue May 4 15:46:46 PDT 2010


Revision: 4019
          http://trac.macosforge.org/projects/ruby/changeset/4019
Author:   lsansonetti at apple.com
Date:     2010-05-04 15:46:44 -0700 (Tue, 04 May 2010)
Log Message:
-----------
fixed a bug in Method#call which would incorrectly change the safe level

Modified Paths:
--------------
    MacRuby/trunk/proc.c

Modified: MacRuby/trunk/proc.c
===================================================================
--- MacRuby/trunk/proc.c	2010-05-04 21:07:52 UTC (rev 4018)
+++ MacRuby/trunk/proc.c	2010-05-04 22:46:44 UTC (rev 4019)
@@ -1056,7 +1056,7 @@
 	rb_raise(rb_eTypeError, "can't call unbound method; bind first");
     }
     
-    int safe = 1;
+    int safe = -1;
     if (OBJ_TAINTED(method)) {
 	safe = rb_safe_level();
 	if (rb_safe_level() < 4) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100504/332d7e3b/attachment.html>


More information about the macruby-changes mailing list