[MacRuby] #1194: launch_msg(LAUNCH_KEY_CHECKIN) doesn't return nil when run outside of a daemon/agent
MacRuby
ruby-noreply at macosforge.org
Mon Mar 14 18:53:13 PDT 2011
#1194: launch_msg(LAUNCH_KEY_CHECKIN) doesn't return nil when run outside of a
daemon/agent
--------------------------------------+-------------------------------------
Reporter: warpflyght@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: major | Milestone:
Component: MacRuby | Keywords:
--------------------------------------+-------------------------------------
Comment(by lsansonetti@…):
Thanks for the report. I think the following patch might fix the problem,
I will do some testing.
{{{
Index: compiler.cpp
===================================================================
--- compiler.cpp (revision 5277)
+++ compiler.cpp (working copy)
@@ -5749,6 +5749,9 @@
VALUE
rb_vm_new_opaque(VALUE klass, void *val)
{
+ if (val == NULL) {
+ return Qnil;
+ }
return Data_Wrap_Struct(klass, NULL, NULL, val);
}
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/1194#comment:2>
MacRuby <http://macruby.org/>
More information about the macruby-tickets
mailing list