fix get-preferences when the file isn't there

svn: r5896
This commit is contained in:
Matthew Flatt 2007-04-09 02:40:57 +00:00
parent b41a2abf23
commit 61785f1fc8

View File

@ -344,7 +344,7 @@
(= (car cache) (= (car cache)
(file-or-directory-modify-seconds fn #f (lambda () -inf.0)))))) (file-or-directory-modify-seconds fn #f (lambda () -inf.0))))))
(cdr cache) (cdr cache)
(let ([ts (file-or-directory-modify-seconds fn)] (let ([ts (file-or-directory-modify-seconds fn #f (lambda () -inf.0))]
[f (read-prefs fn)]) [f (read-prefs fn)])
(pref-cache-install! fn fn f) (pref-cache-install! fn fn f)
f)))) f))))