X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=src%2Fcode%2Funix-pathname.lisp;h=302fce069a586b591e71155773d8bb9cf9e53bf4;hb=a4882e3023fdd5e777169a4cbede33605281173c;hp=6f1cf6ae745e881a24efff912064063a1f2c03f0;hpb=8c685e1fee08b4d1d9ef43b8d2784ac283c94096;p=sbcl.git diff --git a/src/code/unix-pathname.lisp b/src/code/unix-pathname.lisp index 6f1cf6a..302fce0 100644 --- a/src/code/unix-pathname.lisp +++ b/src/code/unix-pathname.lisp @@ -245,9 +245,10 @@ (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))