ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.xs
(Generate patch)

Comparing IO-AIO/AIO.xs (file contents):
Revision 1.229 by root, Fri Apr 11 05:19:40 2014 UTC vs.
Revision 1.230 by root, Tue Jun 3 01:30:33 2014 UTC

1264 len = svlen - dataoffset; 1264 len = svlen - dataoffset;
1265 } 1265 }
1266 else 1266 else
1267 { 1267 {
1268 /* read: check type and grow scalar as necessary */ 1268 /* read: check type and grow scalar as necessary */
1269 SvUPGRADE (data, SVt_PV);
1270 if (SvLEN (data) >= SvCUR (data)) 1269 if (!SvPOK (data) || SvLEN (data) >= SvCUR (data))
1271 svptr = SvGROW (data, len + dataoffset + 1); 1270 svptr = sv_grow (data, len + dataoffset + 1);
1272 else if (SvCUR (data) < len + dataoffset) 1271 else if (SvCUR (data) < len + dataoffset)
1273 croak ("length + dataoffset outside of scalar, and cannot grow"); 1272 croak ("length + dataoffset outside of scalar, and cannot grow");
1274 } 1273 }
1275 1274
1276 { 1275 {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines