diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-15 14:35:46 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-15 14:35:46 +0000 |
commit | 8923ba1ec9f7b8ebe6de729d5a54f2e2ccb202ff (patch) | |
tree | c30999087abcf6adf8034cff80025cdc666a4691 /re.c | |
parent | 2ebd80d1157fcab65d2d854a8a094aec9a849968 (diff) | |
download | ruby-8923ba1ec9f7b8ebe6de729d5a54f2e2ccb202ff.tar.gz |
* gc.c: fix a regression by r31690 on AIX because AIX malloc
return NULL if it's passed 0. But some caller don't expect it.
patch by Yutaka Kanemoto.
(vm_malloc_prepare): return calculated size.
(vm_xmalloc): use above result.
(vm_xcalloc): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 're.c')
0 files changed, 0 insertions, 0 deletions