Skip to content
Snippets Groups Projects
Commit 80a7a127 authored by wlott's avatar wlott
Browse files

Fixed namestring of a stream to not flame out if there is no pathname for

that stream.
parent 3d264953
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.22 1993/08/04 10:58:18 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/pathname.lisp,v 1.23 1993/08/15 14:44:31 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -843,11 +843,12 @@ ...@@ -843,11 +843,12 @@
(declare (type path-designator pathname) (declare (type path-designator pathname)
(values (or null simple-base-string))) (values (or null simple-base-string)))
(with-pathname (pathname pathname) (with-pathname (pathname pathname)
(let ((host (%pathname-host pathname))) (when pathname
(unless host (let ((host (%pathname-host pathname)))
(error "Cannot determine the namestring for pathnames with no ~ (unless host
host:~% ~S" pathname)) (error "Cannot determine the namestring for pathnames with no ~
(funcall (host-unparse host) pathname)))) host:~% ~S" pathname))
(funcall (host-unparse host) pathname)))))
;;; HOST-NAMESTRING -- Interface ;;; HOST-NAMESTRING -- Interface
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment