about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-11-05 20:39:46 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-11-07 05:21:19 +0000
commitbb28726fa5e29b7a5640cdab13e9d7a7e838f6a6 (patch)
treef3e997b57905c7e304db2f094e9f7fb47134b139
parent7e406125cd03faa73d645b0825f9817e7aee42e1 (diff)
downloadzsh-bb28726fa5e29b7a5640cdab13e9d7a7e838f6a6.tar.gz
zsh-bb28726fa5e29b7a5640cdab13e9d7a7e838f6a6.tar.xz
zsh-bb28726fa5e29b7a5640cdab13e9d7a7e838f6a6.zip
39840: _cpio: Declare variable's type correctly.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Unix/Command/_cpio3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index bf41244ce..a3a8c00fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-07  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 39840: Completion/Unix/Command/_cpio: Declare variable's
+	type correctly.
+
 2016-11-07  Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
 
 	* 39728: Src/zsh_system.h, Src/Modules/datetime.c: define
diff --git a/Completion/Unix/Command/_cpio b/Completion/Unix/Command/_cpio
index 4027cc0ca..699b1d8f2 100644
--- a/Completion/Unix/Command/_cpio
+++ b/Completion/Unix/Command/_cpio
@@ -1,6 +1,7 @@
 #compdef cpio
 
-local args ig curcontext="$curcontext" state line
+local -a args
+local ig curcontext="$curcontext" state line
 local expl ret=1
 local fmts='(bar bin odc newc crc tar ustar hpbin hpodc)'