summaryrefslogtreecommitdiff
path: root/ext/etc
diff options
context:
space:
mode:
authorcharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 05:35:23 +0000
committercharliesome <charliesome@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-22 05:35:23 +0000
commit1a2c400273620939d596fef3eacf95750cfdb039 (patch)
tree4ac6e644e63cf6c2e134cd7ea3c6a6e37c8dadc1 /ext/etc
parent042fe1ea912903ce34feca4c24e6231135748259 (diff)
* ext/etc/etc.c (setup_passwd): pass 0 as VALUE to rb_struct_new to
prevent segfault if the compiler passes it as a 32 bit integer on a 64 bit ruby git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc')
-rw-r--r--ext/etc/etc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index de06c74..1c52535 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -116,7 +116,7 @@ setup_passwd(struct passwd *pwd)
#ifdef HAVE_STRUCT_PASSWD_PW_EXPIRE
INT2NUM(pwd->pw_expire),
#endif
- 0 /*dummy*/
+ (VALUE)0 /*dummy*/
);
}
#endif