From ca52e3be5cbfe5a78576028813784b1790411dc2 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 12 Jan 2010 01:00:34 +0000 Subject: * hash.c: need to include errno.h for EINVAL. * hash.c (ruby_setenv): fixed typo. see [ruby-dev:40026] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ hash.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8fbecd6ba4..6a9dae5224 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 12 09:58:03 2010 NAKAMURA Usaku + + * 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 * prelude.rb (require_relative): use File.realpath. [ruby-dev:40040] diff --git a/hash.c b/hash.c index 9179656b76..124df01385 100644 --- a/hash.c +++ b/hash.c @@ -14,6 +14,7 @@ #include "ruby/ruby.h" #include "ruby/st.h" #include "ruby/util.h" +#include #ifdef __APPLE__ #include @@ -2056,7 +2057,7 @@ ruby_setenv(const char *name, const char *value) putenv(buf); /* putenv() doesn't handle empty value */ - if (*value) + if (!*value) SetEnvironmentVariable(name,value); } else { -- cgit v1.2.3