Fix bug that occurred when the HOME environment variable wasn't set.
authorChris Hanson <org/chris-hanson/cph>
Sat, 24 Apr 1999 04:40:14 +0000 (04:40 +0000)
committerChris Hanson <org/chris-hanson/cph>
Sat, 24 Apr 1999 04:40:14 +0000 (04:40 +0000)
v7/src/runtime/ntprm.scm

index d4c7177bbebcdc364223457882fc550e6038492d..bd1c26c55b2b9480a1209916385dccfefb519de5 100644 (file)
@@ -1,6 +1,6 @@
 #| -*-Scheme-*-
 
-$Id: ntprm.scm,v 1.31 1999/04/07 04:09:03 cph Exp $
+$Id: ntprm.scm,v 1.32 1999/04/24 04:40:14 cph Exp $
 
 Copyright (c) 1992-1999 Massachusetts Institute of Technology
 
@@ -340,7 +340,8 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   (let ((trydir
         (lambda (directory)
           (and directory
-               (file-directory? directory)))))
+               (file-directory? directory)
+               directory))))
     (let ((sysroot
           (or (trydir (get-environment-variable "SystemRoot"))
               (trydir (get-environment-variable "windir"))