script: Handle a missing 's' stamp gracefully.

Sponsored by:	Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37182
This commit is contained in:
Dag-Erling Smørgrav 2022-10-27 20:04:48 +00:00
parent 6ac087cf8f
commit 473e9fcab4

View file

@ -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':