mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2025-12-16 21:05:36 +01:00
zero-initialise array to silence valgrind
This commit is contained in:
parent
740b20e150
commit
aa5392bc13
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue