diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2022-10-27 20:04:48 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2022-10-27 20:11:36 +0000 |
commit | 473e9fcab4ea9379f53e1f7d8e41f5a5754d0007 (patch) | |
tree | b3244e490785c963a5f8411969e15fc99a20bc3c /usr.bin | |
parent | 6ac087cf8ff4de22dc0b1b7ce1248f0a1558ddc2 (diff) | |
download | src-473e9fcab4ea9379f53e1f7d8e41f5a5754d0007.tar.gz src-473e9fcab4ea9379f53e1f7d8e41f5a5754d0007.zip |
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/script/script.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.bin/script/script.c b/usr.bin/script/script.c index bee250c072b9..1d3588c26d8b 100644 --- a/usr.bin/script/script.c +++ b/usr.bin/script/script.c @@ -552,6 +552,8 @@ playback(FILE *fp) tclock = stamp.scr_sec; tso.tv_sec = stamp.scr_sec; tso.tv_nsec = stamp.scr_usec * 1000; + if (nread == 0) + tsi = tso; switch (stamp.scr_direction) { case 's': |