Ensure FIND-RELATIVE-PACKAGE gets a string

This commit is contained in:
jgarcia 2007-11-24 15:58:33 +00:00
parent 13b177387d
commit d92cac2436

View file

@ -193,7 +193,9 @@ If PACKAGE is non-NIL, then only the specified PACKAGE is searched."
((= i len) nil)
(declare (fixnum len i))
(when (char/= #\. (char name i)) (return i)))))
(when (and (plusp (length name)) (char= #\. (char name 0)))
(when (and (stringp name)
(plusp (length name))
(char= #\. (char name 0)))
(let* ((last-dot-position (or (find-non-dot name) (length name)))
(n-dots (the 'fixnum last-dot-position))
(name (subseq name last-dot-position)))