summary refs log tree commit diff
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-03-07 15:28:27 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2015-03-09 19:59:25 +0000
commitc1eda67909404538addb932203088cada148f9d5 (patch)
treee8d5679039c9ca8690705c3fa328b4777e2362be
parent0e319ecadc86a589c9f28819efae9e0bf972ee1b (diff)
downloadzsh-c1eda67909404538addb932203088cada148f9d5.tar.gz
zsh-c1eda67909404538addb932203088cada148f9d5.tar.xz
zsh-c1eda67909404538addb932203088cada148f9d5.zip
34693: _strace: Fix variable leakage of $sys_calls
-rw-r--r--ChangeLog5
-rw-r--r--Completion/Linux/Command/_strace1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 65d73074c..c99f726b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-03-09  Daniel Shahaf  <d.s@daniel.shahaf.name>
+
+	* 34693: Completion/Linux/Command/_strace: _strace: Fix variable
+	leakage of $sys_calls
+
 2015-03-07  Daniel Shahaf  <d.s@daniel.shahaf.name>
 
 	* Daniel Hahler: 34638 with tweaks: Completion/Unix/Command/_git:
diff --git a/Completion/Linux/Command/_strace b/Completion/Linux/Command/_strace
index 45ebfcf1a..d6dabfd24 100644
--- a/Completion/Linux/Command/_strace
+++ b/Completion/Linux/Command/_strace
@@ -5,6 +5,7 @@
 #	- allow negated calls (e.g. -e!write)
 _sys_calls () {
 	local expl
+	local -a sys_calls
 
 	sys_calls=(_llseek _newselect _sysctl accept access acct
 		adjtimex afs_syscall alarm bdflush bind break brk cacheflush