about summary refs log tree commit diff
path: root/Src/builtin.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2015-12-13 14:56:43 +0000
committerMikael Magnusson <mikachu@gmail.com>2016-05-08 21:57:06 +0200
commit7db77ff1bb173a3db5501b195da9effc3b4fbe53 (patch)
tree734dcdf6a49d4bbd3e7ce5e84f54f696fab31113 /Src/builtin.c
parent3062f6aef115bd60fa3a0cae691bd9338f2d3ce7 (diff)
downloadzsh-7db77ff1bb173a3db5501b195da9effc3b4fbe53.tar.gz
zsh-7db77ff1bb173a3db5501b195da9effc3b4fbe53.tar.xz
zsh-7db77ff1bb173a3db5501b195da9effc3b4fbe53.zip
UNREVIEWED: Further optimizations
Diffstat (limited to 'Src/builtin.c')
-rw-r--r--Src/builtin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/builtin.c b/Src/builtin.c
index 6bd9c2729..27355feff 100644
--- a/Src/builtin.c
+++ b/Src/builtin.c
@@ -3404,7 +3404,7 @@ bin_unset(char *name, char **argv, Options ops, int func)
 		    } else {
 			/* start is after the element for reverse index */
 			int start = vbuf.start - !!(vbuf.flags & VALFLAG_INV);
-			if (start < arrlen(vbuf.pm->u.arr)) {
+			if (start < vbuf.pm->length) {
 			    char *arr[2];
 			    arr[0] = "";
 			    arr[1] = 0;