diff options
author | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-05-13 09:51:05 +0200 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-05-13 09:51:05 +0200 |
commit | f0c2cf8607dd055f2b8aaa98664f7328108f2c65 (patch) | |
tree | 00f913deb737ffcb567ac43f538dc4401e54a625 /Src | |
parent | c636c4b3b90ac397d77b492f228719745ed15e3a (diff) | |
download | zsh-f0c2cf8607dd055f2b8aaa98664f7328108f2c65.tar.gz zsh-f0c2cf8607dd055f2b8aaa98664f7328108f2c65.tar.xz zsh-f0c2cf8607dd055f2b8aaa98664f7328108f2c65.zip |
42760: move stack variable outside while loop scope as it is accessed in the while condition
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Zle/zle_thingy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_thingy.c b/Src/Zle/zle_thingy.c index 5601c1178..6b892b822 100644 --- a/Src/Zle/zle_thingy.c +++ b/Src/Zle/zle_thingy.c @@ -725,13 +725,13 @@ bin_zle_call(char *name, char **args, UNUSED(Options ops), UNUSED(char func)) remetafy = 0; while (*args && **args == '-') { + char skip_this_arg[2] = "x"; char *num; if (!args[0][1] || args[0][1] == '-') { args++; break; } while (*++(*args)) { - char skip_this_arg[2] = "x"; switch (**args) { case 'n': num = args[0][1] ? args[0]+1 : args[1]; |