summaryrefslogtreecommitdiff
path: root/games/sail/dr_1.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2006-03-27 00:10:16 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2006-03-27 00:10:16 +0000
commit1e83c82a3bf562241906e89f69222dfa40422206 (patch)
tree3cb64e8eb5d6a8755f5b2b2f0f18285a9094a131 /games/sail/dr_1.c
parent8865bd2a63b0dd63bb6398ca8fef60e3f5669d34 (diff)
assorted fixes mostly from coverity via netbsd via jasper adriaanse via tech
Diffstat (limited to 'games/sail/dr_1.c')
-rw-r--r--games/sail/dr_1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/sail/dr_1.c b/games/sail/dr_1.c
index 8d241aa57f5..107fc7130cc 100644
--- a/games/sail/dr_1.c
+++ b/games/sail/dr_1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dr_1.c,v 1.4 2003/06/03 03:01:41 millert Exp $ */
+/* $OpenBSD: dr_1.c,v 1.5 2006/03/27 00:10:15 tedu Exp $ */
/* $NetBSD: dr_1.c,v 1.4 1995/04/24 12:25:10 cgd Exp $ */
/*
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: dr_1.c,v 1.4 2003/06/03 03:01:41 millert Exp $";
+static char rcsid[] = "$OpenBSD: dr_1.c,v 1.5 2006/03/27 00:10:15 tedu Exp $";
#endif
#endif /* not lint */
@@ -419,7 +419,7 @@ next()
bestship = s;
}
}
- if (best > 0.0) {
+ if (bestship) {
char *tp = getenv("WOTD");
const char *p;
if (tp == 0)