From 2a4b677c1cb49ef60c9cc31f16ddef5861ca83e1 Mon Sep 17 00:00:00 2001 From: Juergen Repp Date: Wed, 7 Feb 2024 20:26:59 +0100 Subject: [PATCH] lib/pcr.c Fix compile error may be used uninitialized. gcc version 10.2.1 on raspian 10.2.1 did produce the compile error "may be used uninitialized". The error was not possible. To enable compilation the affected variable is initialized. Signed-off-by: Juergen Repp --- lib/pcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pcr.c b/lib/pcr.c index fe939a7f9..9aa5fbf05 100644 --- a/lib/pcr.c +++ b/lib/pcr.c @@ -65,7 +65,7 @@ static bool pcr_parse_list(const char *str, size_t len, do { char dgst_buf[sizeof(TPMU_HA) * 2 + 1]; const char *dgst;; - int dgst_len; + int dgst_len = 0; UINT16 dgst_size; int pcr_len;