aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin.c b/builtin.c
index 53800fc2..072fd8ff 100644
--- a/builtin.c
+++ b/builtin.c
@@ -2422,7 +2422,7 @@ do_sub(int nargs, unsigned int flags)
size_t len;
char *matchstart;
char *text;
- size_t textlen;
+ size_t textlen = 0;
char *repl;
char *replend;
size_t repllen;