aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin.c b/builtin.c
index 5b75979c..8685d290 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2412,7 +2412,7 @@ do_match(int nargs)
*/
NODE *
-do_sub(int nargs, unsigned int flags, int *num_matches)
+do_sub(int nargs, unsigned int flags)
{
char *scan;
char *bp, *cp;
@@ -2680,7 +2680,6 @@ set_how_many:
done:
DEREF(s);
- *num_matches = matches;
if ((matches == 0 || (flags & LITERAL) != 0) && buf != NULL)
efree(buf);