about summary refs log tree commit diff
path: root/Src/Modules/parameter.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-09-02 09:42:05 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-09-02 09:42:05 +0000
commit586aaeb0861cce12a22af5bb3288c4e84b1c0bb4 (patch)
treed2ba4d41714cee418ceb22a50da63bbca6087cf7 /Src/Modules/parameter.c
parentb13200b2a367d513c445dcc35e7d35b71990bcc1 (diff)
downloadzsh-586aaeb0861cce12a22af5bb3288c4e84b1c0bb4.tar.gz
zsh-586aaeb0861cce12a22af5bb3288c4e84b1c0bb4.tar.xz
zsh-586aaeb0861cce12a22af5bb3288c4e84b1c0bb4.zip
zsh-workers/7628
Diffstat (limited to 'Src/Modules/parameter.c')
-rw-r--r--Src/Modules/parameter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Modules/parameter.c b/Src/Modules/parameter.c
index 08c95c610..2d932ce06 100644
--- a/Src/Modules/parameter.c
+++ b/Src/Modules/parameter.c
@@ -83,6 +83,9 @@ paramtypestr(Param pm)
     int f = pm->flags;
 
     if (!(f & PM_UNSET)) {
+	if (pm->flags & PM_AUTOLOAD)
+	    return dupstring("undefined");
+
 	switch (PM_TYPE(f)) {
 	case PM_SCALAR:  val = "scalar"; break;
 	case PM_ARRAY:   val = "array"; break;