[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Coverity fix for games/mille
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Coverity fix for games/mille
- From: Jasper Lievisse Adriaanse <jasper_(_at_)_nedbsd_(_dot_)_nl>
- Date: Wed, 22 Mar 2006 19:15:39 +0100
---------------------8<---------------------
Coverity CID 695, from christos_(_at_)_netbsd_(_dot_)_org
Index: comp.c
===================================================================
RCS file: /cvs/src/games/mille/comp.c,v
retrieving revision 1.5
diff -u -r1.5 comp.c
--- comp.c 3 Jun 2003 03:01:40 -0000 1.5
+++ comp.c 22 Mar 2006 18:00:04 -0000
@@ -342,9 +342,7 @@
*value /= ++badcount;
if (op->mileage == 0)
*value += 5;
- if ((card == C_LIMIT &&
- op->speed == C_LIMIT) ||
- !op->can_go)
+ if (op->speed == C_LIMIT || !op->can_go)
*value -= 5;
if (cango && pp->safety[S_RIGHT_WAY] !=
S_UNKNOWN)
---------------------8<---------------------
Cheers,
Jasper
--
Humppa is a serious thing!
[demime 1.01d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org