about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--Src/module.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index c7ec6a906..fd8579397 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2008-05-08  Peter Stephenson  <pws@csr.com>
 
+	* unposted: Src/modules.c: bad arguments to error message.
+
 	* 24980: Doc/Zsh/builtins.yo, Src/builtin.c, Src/module.c,
 	Src/zsh.h: add zmodload -mF to manipulate features by pattern.
 
diff --git a/Src/module.c b/Src/module.c
index c4fb95c78..22e9c6abb 100644
--- a/Src/module.c
+++ b/Src/module.c
@@ -3122,7 +3122,7 @@ bin_zmodload_features(const char *nam, char **args, Options ops)
 		    zwarnnam(nam, patprogs ?
 			     "module `%s' has no feature matching: `%s'" :
 			     "module `%s' has no such feature: `%s'",
-			     *arrp);
+			     modname, *arrp);
 		return 1;
 	    }
 	}