about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-18 19:42:08 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2020-03-22 02:23:52 +0000
commite94e828efd4835a45bab4e37f9e3b16fd09b3f78 (patch)
treed063fe86c43e9d6df013d659a8a15fe721251822 /Src/exec.c
parentfb3ef09f2d674f20460e9a4112e2d9d648266d24 (diff)
downloadzsh-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.
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c1
1 files changed, 0 insertions, 1 deletions
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++;