X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=indirect.xs;h=c6e18e7204dbde48f30b5bdafebe646e988ad044;hb=5ad2eeb198dc46b5e4497d3dbb84490d2e5affee;hp=e144b02a4febf353155eefc2f432ba7734c5cf4d;hpb=8fc94cd143b3b33a9642be69b17389375208dbcf;p=perl%2Fmodules%2Findirect.git diff --git a/indirect.xs b/indirect.xs index e144b02..c6e18e7 100644 --- a/indirect.xs +++ b/indirect.xs @@ -183,11 +183,11 @@ STATIC OP *indirect_ck_rv2sv(pTHX_ OP *o) { const char *stash = HvNAME_get(PL_curstash); STRLEN stashlen = HvNAMELEN_get(PL_curstash); - if ((len < stashlen + 2) || name != strstr(name, stash)) { + if ((len < stashlen + 2) || strnNE(name, stash, stashlen)) { /* Failed again ? Try to remove main */ stash = "main"; stashlen = 4; - if ((len < stashlen + 2) || name != strstr(name, stash)) + if ((len < stashlen + 2) || strnNE(name, stash, stashlen)) goto done; } if (name[stashlen] != ':' || name[stashlen+1] != ':')