diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-12 01:00:34 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-12 01:00:34 +0000 |
commit | ca52e3be5cbfe5a78576028813784b1790411dc2 (patch) | |
tree | db8a4ce2b603bd3b5bf4ea352608bf9258f69ae3 /hash.c | |
parent | 8001de14343b275b26470203f05f43cb9ede1d94 (diff) | |
download | ruby-ca52e3be5cbfe5a78576028813784b1790411dc2.tar.gz |
* 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
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 @@ ruby_setenv(const char *name, const char *value) putenv(buf); /* putenv() doesn't handle empty value */ - if (*value) + if (!*value) SetEnvironmentVariable(name,value); } else { |