diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cmd/sed.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/sed.c b/src/cmd/sed.c index a463e071..5849c83f 100644 --- a/src/cmd/sed.c +++ b/src/cmd/sed.c @@ -994,7 +994,7 @@ match(Reprog *pattern, Rune *buf) return 0; subexp[0].s.rsp = buf; subexp[0].e.rep = 0; - if (rregexec(pattern, linebuf, subexp, MAXSUB)) { + if (rregexec(pattern, linebuf, subexp, MAXSUB) > 0) { loc1 = subexp[0].s.rsp; loc2 = subexp[0].e.rep; return 1; |