about summary refs log tree commit diff
path: root/Src/subst.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2011-06-06 09:08:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2011-06-06 09:08:21 +0000
commit03b0edaa639156f819b7d79a6d1c538047d55ae6 (patch)
treeebdb6047c81e06e328de8813ccae6bf9a8e17210 /Src/subst.c
parent7598220496a3dac606ea6399b3280dff573a4122 (diff)
downloadzsh-03b0edaa639156f819b7d79a6d1c538047d55ae6.tar.gz
zsh-03b0edaa639156f819b7d79a6d1c538047d55ae6.tar.xz
zsh-03b0edaa639156f819b7d79a6d1c538047d55ae6.zip
29462: fix warning
Diffstat (limited to 'Src/subst.c')
-rw-r--r--Src/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/subst.c b/Src/subst.c
index 314489e49..e8a181129 100644
--- a/Src/subst.c
+++ b/Src/subst.c
@@ -2848,7 +2848,7 @@ paramsubst(LinkList l, LinkNode n, char **str, int qt, int ssub)
 	    char *check_offset = check_colon_subscript(s, &check_offset2);
 	    if (check_offset) {
 		zlong offset = mathevali(check_offset);
-		zlong length;
+		zlong length = 0;
 		int length_set = 0;
 		int offset_hack_argzero = 0;
 		if (errflag)