From fab39850b1027ba2b225fa3f904a397b6579bfe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 23 Nov 2022 13:54:07 +0100 Subject: [PATCH] Fix errors reported by valgrind due to uninitialized memory --- lib/MySQL_Protocol.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/MySQL_Protocol.cpp b/lib/MySQL_Protocol.cpp index 31a377649..b12eceb15 100644 --- a/lib/MySQL_Protocol.cpp +++ b/lib/MySQL_Protocol.cpp @@ -69,7 +69,7 @@ char *sha1_pass_hex(char *sha1_pass) { buff[0]='*'; buff[SHA_DIGEST_LENGTH*2+1]='\0'; int i; - uint8_t a; + uint8_t a = 0; for (i=0;i