ruby-changes:14461
From: usa <ko1@a...>
Date: Tue, 12 Jan 2010 10:01:00 +0900 (JST)
Subject: [ruby-changes:14461] Ruby:r26293 (trunk): * hash.c: need to include errno.h for EINVAL.
usa 2010-01-12 10:00:34 +0900 (Tue, 12 Jan 2010) New Revision: 26293 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26293 Log: * hash.c: need to include errno.h for EINVAL. * hash.c (ruby_setenv): fixed typo. see [ruby-dev:40026] Modified files: trunk/ChangeLog trunk/hash.c Index: ChangeLog =================================================================== --- ChangeLog (revision 26292) +++ ChangeLog (revision 26293) @@ -1,3 +1,9 @@ +Tue Jan 12 09:58:03 2010 NAKAMURA Usaku <usa@r...> + + * hash.c: need to include errno.h for EINVAL. + + * hash.c (ruby_setenv): fixed typo. see [ruby-dev:40026] + Tue Jan 12 09:22:43 2010 Tanaka Akira <akr@f...> * prelude.rb (require_relative): use File.realpath. [ruby-dev:40040] Index: hash.c =================================================================== --- hash.c (revision 26292) +++ hash.c (revision 26293) @@ -14,6 +14,7 @@ #include "ruby/ruby.h" #include "ruby/st.h" #include "ruby/util.h" +#include <errno.h> #ifdef __APPLE__ #include <crt_externs.h> @@ -2056,7 +2057,7 @@ putenv(buf); /* putenv() doesn't handle empty value */ - if (*value) + if (!*value) SetEnvironmentVariable(name,value); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/