From c06f5b455607b4192ccf331b714603393ceee707 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 15 Apr 2011 14:56:53 +0000 Subject: Fix compiler warning due to state.doff duplication. --- ChangeLog | 7 ++++++- Src/Zle/computil.c | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b73d397eb..7022783e5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2011-04-15 Wayne Davison + + * Unposted: Src/Zle/computil.c: Fix compiler warning caused by + duplicate initialization of state.doff. + 2011-04-15 Frank Terbeck * Simon Ruderich: 28927: Completion/Unix/Command/_git: Fix "git @@ -14461,5 +14466,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.5249 $ +* $Revision: 1.5250 $ ***************************************************** diff --git a/Src/Zle/computil.c b/Src/Zle/computil.c index 7c5bc2181..0cc9d7400 100644 --- a/Src/Zle/computil.c +++ b/Src/Zle/computil.c @@ -1904,7 +1904,7 @@ ca_parse_line(Cadef d, int multi, int first) state.argbeg = state.optbeg = state.nargbeg = state.restbeg = state.actopts = state.nth = state.inopt = state.inarg = state.opt = state.arg = 1; state.argend = argend = arrlen(compwords) - 1; - state.inrest = state.doff = state.singles = state.doff = state.oopt = 0; + state.inrest = state.doff = state.singles = state.oopt = 0; state.curpos = compcurrent; state.args = znewlinklist(); state.oargs = (LinkList *) zalloc(d->nopts * sizeof(LinkList)); -- cgit 1.4.1