[macruby-changes] [5230] MacRuby/trunk/ruby.c

source_changes at macosforge.org source_changes at macosforge.org
Thu Feb 10 14:43:59 PST 2011


Revision: 5230
          http://trac.macosforge.org/projects/ruby/changeset/5230
Author:   lsansonetti at apple.com
Date:     2011-02-10 14:43:58 -0800 (Thu, 10 Feb 2011)
Log Message:
-----------
reset errno value after processing command-line options

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

Modified: MacRuby/trunk/ruby.c
===================================================================
--- MacRuby/trunk/ruby.c	2011-02-10 22:39:34 UTC (rev 5229)
+++ MacRuby/trunk/ruby.c	2011-02-10 22:43:58 UTC (rev 5230)
@@ -1235,6 +1235,8 @@
     rb_define_readonly_boolean("$-l", opt->do_line);
     rb_define_readonly_boolean("$-a", opt->do_split);
 
+    errno = 0; // Reset errno value.
+
     return tree;
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20110210/5de3f6b0/attachment.html>


More information about the macruby-changes mailing list