From: iceman1001 Date: Tue, 2 Aug 2016 22:13:33 +0000 (+0200) Subject: FIX. COVERITYscan 133860, initialize to zero. This function is still not working... X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/34c81fe01ca6d0438eb87b236aa7f286f740c637 FIX. COVERITYscan 133860, initialize to zero. This function is still not working but at least now it doesnt crash the client. --- diff --git a/client/cmdlfhid.c b/client/cmdlfhid.c index b9d3ace3..9b13b509 100644 --- a/client/cmdlfhid.c +++ b/client/cmdlfhid.c @@ -319,7 +319,8 @@ int CmdHIDWiegand(const char *Cmd) { uint32_t oem = 0, fc = 0; uint64_t cardnum = 0; - uint32_t blocks[2], wiegand[2]; + uint32_t blocks[2] = {0,0} + uint32_t wiegand[2] = {0,0}; uint8_t bits[96]; uint8_t *bs = bits;