diff options
author | abs <abs@NetBSD.org> | 2006-03-17 23:34:37 +0000 |
---|---|---|
committer | abs <abs@NetBSD.org> | 2006-03-17 23:34:37 +0000 |
commit | b78f648f0f659adc4bdcd24b61f66025174f51f6 (patch) | |
tree | a412bc32ae833bcda8056bae597e81f9042671e2 /hunt | |
parent | db58b57d39a6d63b43115c78fdede855db7a431d (diff) | |
download | bsdgames-darwin-b78f648f0f659adc4bdcd24b61f66025174f51f6.tar.gz bsdgames-darwin-b78f648f0f659adc4bdcd24b61f66025174f51f6.tar.zst bsdgames-darwin-b78f648f0f659adc4bdcd24b61f66025174f51f6.zip |
Add a missing bp->b_score not null check - addresses Coverity CID 1003
Diffstat (limited to 'hunt')
-rw-r--r-- | hunt/huntd/shots.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hunt/huntd/shots.c b/hunt/huntd/shots.c index d028445f..225ce778 100644 --- a/hunt/huntd/shots.c +++ b/hunt/huntd/shots.c @@ -1,4 +1,4 @@ -/* $NetBSD: shots.c,v 1.5 2004/01/27 20:30:29 jsm Exp $ */ +/* $NetBSD: shots.c,v 1.6 2006/03/17 23:34:37 abs Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. * All rights reserved. @@ -32,7 +32,7 @@ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: shots.c,v 1.5 2004/01/27 20:30:29 jsm Exp $"); +__RCSID("$NetBSD: shots.c,v 1.6 2006/03/17 23:34:37 abs Exp $"); #endif /* not lint */ # include <err.h> @@ -338,7 +338,7 @@ move_normal_shot(bp) message(pp, "Zing!"); if (bp->b_owner == NULL) break; - message(bp->b_owner, + message(bp->b_owner, bp->b_score && ((bp->b_score->i_missed & 0x7) == 0x7) ? "My! What a bad shot you are!" : "Missed him"); |