diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | Src/subst.c | 2 |
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) |