summaryrefslogtreecommitdiff
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
parent7598220496a3dac606ea6399b3280dff573a4122 (diff)
downloadzsh-03b0edaa639156f819b7d79a6d1c538047d55ae6.tar.gz
zsh-03b0edaa639156f819b7d79a6d1c538047d55ae6.zip
29462: fix warning
-rw-r--r--ChangeLog7
-rw-r--r--Src/subst.c2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 64971a413..4777dde22 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-06 Peter Stephenson <pws@csr.com>
+
+ * 29462: Src/subst.c: fix warning with some compilers (code was
+ already safe).
+
2011-06-05 Clint Adams <clint@zsh.org>
* unposted: Functions/Zle/move-line-in-buffer: clean
@@ -14970,5 +14975,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5364 $
+* $Revision: 1.5365 $
*****************************************************
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)