summary refs log tree commit diff
path: root/Src/Modules
diff options
context:
space:
mode:
authorPeter Stephenson <pws@zsh.org>2017-06-12 10:10:23 +0100
committerPeter Stephenson <pws@zsh.org>2017-06-12 10:10:23 +0100
commitd5c22d356ba442fd5811e15cc35b5480008722f4 (patch)
treee99b29c9920f83da25e4c3bbb48409e83f73ffae /Src/Modules
parent18aede9ee53df5e83c786e4fd81872df864dcd47 (diff)
downloadzsh-d5c22d356ba442fd5811e15cc35b5480008722f4.tar.gz
zsh-d5c22d356ba442fd5811e15cc35b5480008722f4.tar.xz
zsh-d5c22d356ba442fd5811e15cc35b5480008722f4.zip
41244: Add zmodload -s option.
Doesn't complain if module is unavailable, but prints more
obscure errors.

Use existing low-level silent flag by passing through
intermediate module loading hierarchy.
Diffstat (limited to 'Src/Modules')
-rw-r--r--Src/Modules/zftp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c
index deed35e2f..24f4b4200 100644
--- a/Src/Modules/zftp.c
+++ b/Src/Modules/zftp.c
@@ -3177,7 +3177,7 @@ static struct features module_features = {
 int
 setup_(UNUSED(Module m))
 {
-    return (require_module("zsh/net/tcp", NULL) == 1);
+    return (require_module("zsh/net/tcp", NULL, 0) == 1);
 }
 
 /**/