mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 04:43:53 +00:00
script: Handle a missing 's' stamp gracefully.
Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37182
This commit is contained in:
parent
6ac087cf8f
commit
473e9fcab4
|
@ -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':
|
||||
|
|
Loading…
Reference in a new issue