diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 00:36:54 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-12-12 00:36:54 +0000 |
| commit | 95458ae6d610a7b98d7c5de73c352e4cce4c0871 (patch) | |
| tree | 767c941787dfe02766290b092d930237d7c386b6 /ext/etc | |
| parent | 354c933ae940e1ae7a109c7322c2e903ab76494d (diff) | |
| download | ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.tar.gz ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.tar.xz ruby-95458ae6d610a7b98d7c5de73c352e4cce4c0871.zip | |
* ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
protect temporary context object. [ruby-dev:27979]
* ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
be called before actual variable initialization.
[ruby-dev:27986]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc')
| -rw-r--r-- | ext/etc/etc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c index 94196e066..ac9573554 100644 --- a/ext/etc/etc.c +++ b/ext/etc/etc.c @@ -521,6 +521,7 @@ Init_etc() rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0); rb_define_module_function(mEtc, "getgrent", etc_getgrent, 0); + rb_global_variable(&sPasswd); sPasswd = rb_struct_define("Passwd", "name", "passwd", "uid", "gid", #ifdef HAVE_ST_PW_GECOS @@ -546,14 +547,13 @@ Init_etc() "expire", #endif NULL); - rb_global_variable(&sPasswd); #ifdef HAVE_GETGRENT + rb_global_variable(&sGroup); sGroup = rb_struct_define("Group", "name", #ifdef HAVE_ST_GR_PASSWD "passwd", #endif "gid", "mem", NULL); - rb_global_variable(&sGroup); #endif } |
