From: Vincent Pit Date: Wed, 15 Oct 2008 20:46:30 +0000 (+0200) Subject: Even if len is 0 in indirect_find(), it'll still return s X-Git-Tag: v0.07_02~3 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=60f610dff9c3af6ea1775632ca4c65e6db07cbb3;p=perl%2Fmodules%2Findirect.git Even if len is 0 in indirect_find(), it'll still return s --- diff --git a/indirect.xs b/indirect.xs index 5b01268..5a3dd98 100644 --- a/indirect.xs +++ b/indirect.xs @@ -113,9 +113,6 @@ STATIC const char *indirect_find(pTHX_ SV *sv, const char *s) { STRLEN len; const char *p = NULL, *r = SvPV_const(sv, len); - if (!len) - return s; - p = strstr(s, r); while (p) { p += len;