[macruby-changes] [3156] MacRuby/trunk/load.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Dec 22 18:07:27 PST 2009


Revision: 3156
          http://trac.macosforge.org/projects/ruby/changeset/3156
Author:   lsansonetti at apple.com
Date:     2009-12-22 18:07:26 -0800 (Tue, 22 Dec 2009)
Log Message:
-----------
#require: check/convert argument to String

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

Modified: MacRuby/trunk/load.c
===================================================================
--- MacRuby/trunk/load.c	2009-12-23 02:06:31 UTC (rev 3155)
+++ MacRuby/trunk/load.c	2009-12-23 02:07:26 UTC (rev 3156)
@@ -261,6 +261,8 @@
 VALUE
 rb_require_safe(VALUE fname, int safe)
 {
+    StringValue(fname);
+
     VALUE result = Qnil;
     VALUE path;
     int type = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20091222/35558517/attachment.html>


More information about the macruby-changes mailing list