summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-17 07:27:00 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-10-17 07:27:00 +0000
commit66d1582c07db57b4a1a1cd0ab7d79f042be80faa (patch)
treea63241e4140156b843a981d9e626356e51905210 /gc.c
parente6c0ea3e097fb5b23e6ec3e909474063eba21306 (diff)
* object.c (rb_str_to_dbl): RString ptr might be NULL.
* object.c (rb_cstr_to_dbl): p pointer might be NULL. * bignum.c (rb_str_to_inum): RString ptr might be NULL. * bignum.c (rb_cstr_to_inum): str pointer might be NULL. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index a7486aa..0ef7970 100644
--- a/gc.c
+++ b/gc.c
@@ -991,7 +991,7 @@ gc_sweep()
}
}
}
- for (i = j = 0; j < heaps_used; i++) {
+ for (i = j = 1; j < heaps_used; i++) {
if (heaps_limits[i] == 0) {
free(heaps[i]);
heaps_used--;