0.9.13.36: global policy / null-lexenv confusion fix
[sbcl.git] / src / code / unix-pathname.lisp
index 6f1cf6a..302fce0 100644 (file)
         (type (pathname-type pathname)))
     (coerce
      (with-output-to-string (s)
-       (ecase (car directory)
-         (:absolute (write-char #\/ s))
-         (:relative))
+       (when directory
+         (ecase (car directory)
+           (:absolute (write-char #\/ s))
+           (:relative)))
        (dolist (piece (cdr directory))
          (typecase piece
            ((member :up) (write-string ".." s))