]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fix formatting and add mising break
authorjNullj <15849761+jNullj@users.noreply.github.com>
Fri, 10 May 2024 13:46:15 +0000 (16:46 +0300)
committerjNullj <15849761+jNullj@users.noreply.github.com>
Fri, 10 May 2024 13:46:15 +0000 (16:46 +0300)
term-utils/scriptreplay.c

index 33bb22129caf1abe798cea568b730cec721dc41c..60009ec0323060dea6f2e3f9c8c0d8fac526ea9d 100644 (file)
@@ -345,7 +345,11 @@ main(int argc, char *argv[])
                                                                rc = replay_emit_step_data(setup, step, STDOUT_FILENO);
                                                                if (rc)
                                                                        break;
+
                                                                rc = replay_get_next_step(setup, streams, &step);
+                                                               if (rc)
+                                                                       break;
+
                                                                struct timeval *delay = replay_step_get_delay(step);
                                                                if (delay && timerisset(delay))
                                                                        stepDelay = *delay;
@@ -385,6 +389,7 @@ main(int argc, char *argv[])
 
                if (!summary) {
                        struct timeval *delay = replay_step_get_delay(step);
+
                        if (delay && timerisset(delay))
                                stepDelay = *delay;
                }