mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
42760: move stack variable outside while loop scope as it is accessed in the while condition
This commit is contained in:
parent
c636c4b3b9
commit
f0c2cf8607
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2018-05-13 Oliver Kiddle <okiddle@yahoo.co.uk>
|
||||
|
||||
* 42760: Src/Zle/zle_thingy.c: move stack variable outside
|
||||
while loop scope as it is accessed in the while condition
|
||||
|
||||
2018-05-11 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* 42180: dana: Src/Zle/compcore.c: safety when removing
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue