From aa5392bc135161252d06c48745c0d53c281d69f3 Mon Sep 17 00:00:00 2001 From: Nico Sonack Date: Tue, 29 Oct 2024 20:21:48 +0100 Subject: [PATCH] zero-initialise array to silence valgrind --- src/libptouch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libptouch.c b/src/libptouch.c index 4310360..e70bfbf 100644 --- a/src/libptouch.c +++ b/src/libptouch.c @@ -316,7 +316,7 @@ void ptouch_rawstatus(uint8_t raw[32]) int ptouch_getstatus(ptouch_dev ptdev) { char cmd[]="\x1biS"; /* 1B 69 53 = ESC i S = Status info request */ - uint8_t buf[32]; + uint8_t buf[32] = {}; int i, r, tx=0, tries=0; struct timespec w;