aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cli/speed.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 0cb5e9947..923abe5c2 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -590,7 +590,8 @@ class Speed final : public Command
iv_timer.run([&] { dec.start(iv); });
decrypt_timer.run([&] { dec.finish(buffer); });
- iv[0] += 1;
+ if(iv.size() > 0)
+ iv[0] += 1;
}
output() << Timer::result_string_ops(ks_timer);