diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-18 19:42:08 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-03-22 02:23:52 +0000 |
commit | e94e828efd4835a45bab4e37f9e3b16fd09b3f78 (patch) | |
tree | d063fe86c43e9d6df013d659a8a15fe721251822 | |
parent | fb3ef09f2d674f20460e9a4112e2d9d648266d24 (diff) | |
download | zsh-e94e828efd4835a45bab4e37f9e3b16fd09b3f78.tar.gz zsh-e94e828efd4835a45bab4e37f9e3b16fd09b3f78.tar.xz zsh-e94e828efd4835a45bab4e37f9e3b16fd09b3f78.zip |
45583/0001: internal: Remove a redundant assignment.
The value is overwritten five lines below, without being read in the interim.
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/exec.c | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index bea520140..3a28744c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-03-22 Daniel Shahaf <d.s@daniel.shahaf.name> + + * 45583/0001: Src/exec.c: internal: Remove a redundant + assignment. + 2020-03-20 Daniel Shahaf <d.s@daniel.shahaf.name> * unposted: Src/Builtins/rlimits.c: Deconfuse $EDITOR's balanced diff --git a/Src/exec.c b/Src/exec.c index bca051d4f..cd014ff38 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -5166,7 +5166,6 @@ execfuncdef(Estate state, Eprog redir_prog) end = beg + WC_FUNCDEF_SKIP(state->pc[-1]); names = ecgetlist(state, *state->pc++, EC_DUPTOK, &htok); - nprg = end - beg; sbeg = *state->pc++; nstrs = *state->pc++; npats = *state->pc++; |