Revision
3156
Author
lsansonetti@apple.com
Date
2009-12-22 18:07:26 -0800 (Tue, 22 Dec 2009)

Log Message

#require: check/convert argument to String

Modified Paths

Diff

Modified: MacRuby/trunk/load.c (3155 => 3156)


--- 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;