mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-07 05:06:37 +02:00
Fixing synchronized-rewrite-file when the file doesn't exist.
This commit is contained in:
parent
366dbdb9dc
commit
4c3deea37e
1 changed files with 1 additions and 0 deletions
|
@ -145,6 +145,7 @@
|
|||
path
|
||||
(lambda (fd)
|
||||
(let* ((str (port->string (open-input-file-descriptor fd)))
|
||||
(str (if (eof-object? str) (if (pair? o) (car o) "") str))
|
||||
(res (proc str))
|
||||
(out (open-output-file-descriptor fd)))
|
||||
(set-file-position! out seek/set 0)
|
||||
|
|
Loading…
Add table
Reference in a new issue