summary refs log tree commit diff
diff options
context:
space:
mode:
-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));