Set op_num to 0

Here, op_num is just used for logging purposes (number of completed operations), so start it at 0

Fixes https://scan5.scan.coverity.com/#/project-view/62507/10222?selectedIssue=1643034

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26829)
This commit is contained in:
Andrew Dinh 2025-02-19 18:24:47 +07:00 committed by Neil Horman
parent c152a94395
commit 6b662bf0d6
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ static int TERP_execute(TERP *terp)
{
int ok = 0;
uint64_t opc;
size_t op_num = SIZE_MAX;
size_t op_num = 0;
int in_debug_output = 0;
size_t spin_count = 0;
BIO *debug_bio = terp->cfg.debug_bio;