Roll work again after duplicating it to prevent duplicates on return to the clone function.
diff --git a/cgminer.c b/cgminer.c
index bc2c931..d9c09e1 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -3647,6 +3647,9 @@ static struct work *clone_work(struct work *work)
}
roll_work(work);
work_clone = make_clone(work);
+ /* Roll it again to prevent duplicates should this be used
+ * directly later on */
+ roll_work(work);
cloned = true;
}