about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorDaniel Shahaf <d.s@daniel.shahaf.name>2016-07-30 10:50:48 +0000
committerDaniel Shahaf <d.s@daniel.shahaf.name>2016-08-01 08:01:29 +0000
commitf9b170351136e7e2e04cecf4f1f6c686b0c1324d (patch)
tree46e9e0fe3196981ca8dd12e47d25ebf0908b10d3 /Src/utils.c
parent1a368bf31f2b2e6e96290a4803bdcd81e9f17393 (diff)
downloadzsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.tar.gz
zsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.tar.xz
zsh-f9b170351136e7e2e04cecf4f1f6c686b0c1324d.zip
38971: Start using the new arrlen_ge() / arrlen_le() helpers.
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 95da96058..0a5954f65 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -1157,7 +1157,7 @@ finddir(char *s)
     scanhashtable(nameddirtab, 0, 0, 0, finddir_scan, 0);
 
     ares = subst_string_by_hook("zsh_directory_name", "d", finddir_full);
-    if (ares && arrlen(ares) >= 2 &&
+    if (ares && arrlen_ge(ares, 2) &&
 	(len = (int)zstrtol(ares[1], NULL, 10)) > finddir_best) {
 	/* better duplicate this string since it's come from REPLY */
 	finddir_last = (Nameddir)hcalloc(sizeof(struct nameddir));