X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2Findirect.git;a=blobdiff_plain;f=indirect.xs;h=284217ca0c139a31d89c0f27fb808647441c89de;hp=ee702c61c6f64f575a02970da3fafde7206039a5;hb=03e565adcd2c23d08331a676767a8195f61a3cf4;hpb=bde376117bfa1b3cc6b40bfe28e19ef120ba3ae0 diff --git a/indirect.xs b/indirect.xs index ee702c6..284217c 100644 --- a/indirect.xs +++ b/indirect.xs @@ -261,7 +261,8 @@ static void indirect_map_store(pTHX_ const OP *o, STRLEN pos, SV *sv, line_t lin XSH_LOCAL_REALLOC(oi->buf, oi->size, len, char); oi->size = len; } - Copy(s, oi->buf, len, char); + if (oi->buf) + Copy(s, oi->buf, len, char); oi->len = len; oi->pos = pos;