From 34c81fe01ca6d0438eb87b236aa7f286f740c637 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Wed, 3 Aug 2016 00:13:33 +0200 Subject: [PATCH] FIX. COVERITYscan 133860, initialize to zero. This function is still not working but at least now it doesnt crash the client. --- client/cmdlfhid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.5