From 9e76aed66dbf777f5cb7e6d7387c1d77047f1f83 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 18 Aug 2012 23:21:24 +1000 Subject: [PATCH] Initialise cnt in libztex.c --- libztex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libztex.c b/libztex.c index ae0ee4ae..627dfb27 100644 --- a/libztex.c +++ b/libztex.c @@ -628,7 +628,7 @@ int libztex_sendHashData(struct libztex_device *ztex, unsigned char *sendbuf) int libztex_readHashData(struct libztex_device *ztex, struct libztex_hash_data nonces[]) { int bufsize = 12 + ztex->extraSolutions * 4; - int cnt, i, j, ret, len; + int cnt = 0, i, j, ret, len; unsigned char *rbuf; if (ztex->hndl == NULL)