--- sm/object.c.orig Sat Dec 4 08:21:00 2004 +++ sm/object.c Sat Dec 4 08:21:42 2004 @@ -167,6 +167,9 @@ if (ot != NULL) *ot = osf->type; + if (type == os_type_UNKNOWN) + type = osf->type; + switch(type) { case os_type_BOOLEAN: case os_type_INTEGER: