]> git.vpit.fr Git - perl/modules/indirect.git/commitdiff
Even if len is 0 in indirect_find(), it'll still return s
authorVincent Pit <vince@profvince.com>
Wed, 15 Oct 2008 20:46:30 +0000 (22:46 +0200)
committerVincent Pit <vince@profvince.com>
Wed, 15 Oct 2008 20:46:30 +0000 (22:46 +0200)
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;