]> git.vpit.fr Git - perl/modules/indirect.git/blobdiff - indirect.xs
Even if len is 0 in indirect_find(), it'll still return s
[perl/modules/indirect.git] / indirect.xs
index 5b012683f3deec681f399ac4636aa7c98ceae6b3..5a3dd986fdf4a4f401a67672c45a24ad2d3242ba 100644 (file)
@@ -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;