diff options
Diffstat (limited to 'appl/lib/venti.b')
| -rw-r--r-- | appl/lib/venti.b | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/appl/lib/venti.b b/appl/lib/venti.b index cfb3a8ec..d2f9db9a 100644 --- a/appl/lib/venti.b +++ b/appl/lib/venti.b @@ -323,6 +323,10 @@ Session.new(fd: ref Sys->FD): ref Session Session.read(s: self ref Session, score: Score, etype: int, maxn: int): array of byte { + if (Score.eq(score, Score.zero()) { + return array[0] of byte; + } + (gm, err) := s.rpc(ref Vmsg.Tread(1, 0, score, etype, maxn)); if(gm == nil){ sys->werrstr(err); |
