diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-19 13:34:10 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-19 13:34:10 +0000 |
| commit | 2732f7859a6613d5f046a3a070bbc48ce6ce9fcb (patch) | |
| tree | aebdad558a8a454deb53c57198550c7c99db9777 /ext/dbm | |
| parent | b99461f98ad8cb0b614d89021f85407315f085d1 (diff) | |
merges r23057 from trunk into ruby_1_9_1.
--
* ext/dbm/dbm.c (fdbm_initialize): Make the file variable
volatile, because FilePathValue() currently does not protect the
given variable from GC. (Probably it should)
* ext/sdbm/init.c (fsdbm_initialize): Ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
| -rw-r--r-- | ext/dbm/dbm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index 7a78f8dad..84d331ae5 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -91,7 +91,8 @@ fdbm_alloc(VALUE klass) static VALUE fdbm_initialize(int argc, VALUE *argv, VALUE obj) { - VALUE file, vmode, vflags; + volatile VALUE file; + VALUE vmode, vflags; DBM *dbm; struct dbmdata *dbmp; int mode, flags = 0; |
