diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-06 15:19:24 +0100 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2020-05-06 16:16:24 +0100 |
commit | 2a53e2464bfa1a831f544ed44d3690e5c22259a5 (patch) | |
tree | 4a7c9d87f024908e813daa992a1ab20cc3b5265b /src | |
parent | a368cc11b211657f86f2495002823bc09b71a9f1 (diff) |
testcases for value return
Diffstat (limited to 'src')
-rw-r--r-- | src/src/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/src/match.c b/src/src/match.c index db02b37bd..f9b539d10 100644 --- a/src/src/match.c +++ b/src/src/match.c @@ -160,7 +160,7 @@ if (pattern[0] == '*') expand_nlength[expand_setup] = slen - patlen; expand_nmax = expand_setup; } - if (valueptr) *valueptr = pattern; /* "value" gets the pattern */ + if (valueptr) *valueptr = pattern - 1; /* "value" gets the (original) pattern */ return OK; } |