1.0.29.35: regression from 1.0.29.27
[sbcl.git] / src / code / common-os.lisp
index 51ebbc1..7b32419 100644 (file)
@@ -43,5 +43,6 @@
   (setf *core-pathname*
         (merge-pathnames (native-pathname *core-string*)))
   (/show0 "setting *RUNTIME-PATHNAME*")
-  (setf *runtime-pathname* (native-pathname (os-get-runtime-executable-path)))
+  (let ((exe (os-get-runtime-executable-path)))
+    (setf *runtime-pathname* (when exe (native-pathname exe))))
   (/show0 "leaving OS-COLD-INIT-OR-REINIT"))