Commit 2061e97c0fc31b7cb14e85a37e8dde1ac3dfb221

Con Kolivas 2013-08-30T20:31:57

Return ok in tolines when it doesn't match inprocess message for bflsc.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/driver-bflsc.c b/driver-bflsc.c
index ea59ddd..61f0479 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -106,9 +106,9 @@ static bool tolines(struct cgpu_info *bflsc, int dev, char *buf, int *lines, cha
 		return ok;
 	}
 
-	ok = true;
 	while (tok) {
 		if (strncasecmp(tok, BFLSC_INPROCESS, BFLSC_INPROCESS_LEN)) {
+			ok = true;
 			p_items = realloc(p_items, ++p_lines * sizeof(*p_items));
 			if (unlikely(!p_items))
 				quit(1, "Failed to realloc p_items in tolines");