about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2011-04-15 14:56:53 +0000
committerWayne Davison <wayned@users.sourceforge.net>2011-04-15 14:56:53 +0000
commitc06f5b455607b4192ccf331b714603393ceee707 (patch)
tree447de89760c919f7de9dfc72a170b26a0be17799
parentfe5109bc439b9e84e359836c086a6f3cdc8ec4b8 (diff)
downloadzsh-c06f5b455607b4192ccf331b714603393ceee707.tar.gz
zsh-c06f5b455607b4192ccf331b714603393ceee707.tar.xz
zsh-c06f5b455607b4192ccf331b714603393ceee707.zip
Fix compiler warning due to state.doff duplication.
-rw-r--r--ChangeLog7
-rw-r--r--Src/Zle/computil.c2
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  <wayned@users.sourceforge.net>
+
+	* Unposted: Src/Zle/computil.c: Fix compiler warning caused by
+	duplicate initialization of state.doff.
+
 2011-04-15  Frank Terbeck  <ft@bewatermyfriend.org>
 
 	* 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));