summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--x2p/walk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x2p/walk.c b/x2p/walk.c
index 2890375366..86419c1faa 100644
--- a/x2p/walk.c
+++ b/x2p/walk.c
@@ -725,7 +725,7 @@ sub Pick {\n\
str_cat(str," =~ ");
str_scat(str,fstr=walk(1,level,ops[node+2].ival,&numarg,P_MATCH+1));
str_free(fstr);
- str_cat(str," && ($RLENGTH = length($&), $RSTART = length($`)+1)");
+ str_cat(str," ? scalar($RLENGTH = length($&), $RSTART = length($`)+1) : 0");
numeric = 1;
break;
case OUSERDEF: