Let read-string/partial return "" on a vacuous request.
This commit is contained in:
parent
c0b8928e7d
commit
750de51339
|
@ -61,7 +61,7 @@
|
|||
|
||||
((open-input-port? fd/port)
|
||||
(if (= len 0)
|
||||
0
|
||||
""
|
||||
(let* ((buffer (make-string len))
|
||||
(nread (read-string!/partial buffer fd/port)))
|
||||
(cond ((not nread) #f)
|
||||
|
|
Loading…
Reference in New Issue