summaryrefslogtreecommitdiff
path: root/Src/cond.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/cond.c')
-rw-r--r--Src/cond.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/cond.c b/Src/cond.c
index 8950d845c..a597587b6 100644
--- a/Src/cond.c
+++ b/Src/cond.c
@@ -95,7 +95,10 @@ evalcond(Estate state, char *fromtest)
case COND_REGEX:
{
char *modname = isset(REMATCHPCRE) ? "zsh/pcre" : "zsh/regex";
- if (!load_module_silence(modname, 1)) {
+ /*
+ * TODO: we just need to load the appropriate condition.
+ */
+ if (load_module_silence(modname, NULL, 1) == 1) {
zwarnnam(fromtest, "%s not available for regex",
modname);
return 2;