use rb_str_modify before rb_str_resizemaster
commit3d14aff395fe5fdc7886bff01e480a0aef574da5
authorEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 20:32:09 +0000 (5 13:32 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 5 May 2011 21:14:17 +0000 (5 14:14 -0700)
tree28f194b1e56d42a487b6a761e1212573b03fcf3b
parent27a96bcaa4eda3b1986522591436dd9a954ce0d2
use rb_str_modify before rb_str_resize

Ruby 1.9.3dev doesn't call rb_str_modify insided rb_str_resize
anymore.

We do not need to rb_str_modify() immediately after
unlocking the string, however.
ext/socket_dontwait/socket_dontwait_ext.c
test/test_socket_dontwait.rb