From e22035f02491573b326581f05e55e5ee08803c72 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Fri, 25 Oct 2013 05:10:08 +1100 Subject: [PATCH] Check for presence of thr in icarus get nonce for startup nonce testing to work. --- driver-icarus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-icarus.c b/driver-icarus.c index 5b0af8d9..43a460eb 100644 --- a/driver-icarus.c +++ b/driver-icarus.c @@ -497,7 +497,7 @@ static int icarus_get_nonce(struct cgpu_info *icarus, unsigned char *buf, struct return ICA_NONCE_OK; rc = SECTOMS(tdiff(tv_finish, tv_start)); - if (thr->work_restart) { + if (thr && thr->work_restart) { applog(LOG_DEBUG, "Icarus Read: Work restart at %d ms", rc); return ICA_NONCE_RESTART; }