[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Coverity fix for games/sail
- To: tech_(_at_)_openbsd_(_dot_)_org
- Subject: Coverity fix for games/sail
- From: Jasper Lievisse Adriaanse <jasper_(_at_)_nedbsd_(_dot_)_nl>
- Date: Wed, 22 Mar 2006 17:19:11 +0100
----------------------------8<----------------------------
Coverity CID 980
Index: dr_1.c
===================================================================
RCS file: /cvs/src/games/sail/dr_1.c,v
retrieving revision 1.4
diff -u -r1.4 dr_1.c
--- dr_1.c 3 Jun 2003 03:01:41 -0000 1.4
+++ dr_1.c 22 Mar 2006 15:21:44 -0000
@@ -419,7 +419,7 @@
bestship = s;
}
}
- if (best > 0.0) {
+ if (best > 0.0 && bestship) {
char *tp = getenv("WOTD");
const char *p;
if (tp == 0)
----------------------------8<----------------------------
Cheers,
Jasper
--
Humppa is a serious thing!
[demime 1.01d removed an attachment of type application/pgp-signature]
Visit your host, monkey.org