From b78f648f0f659adc4bdcd24b61f66025174f51f6 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 17 Mar 2006 23:34:37 +0000 Subject: Add a missing bp->b_score not null check - addresses Coverity CID 1003 --- hunt/huntd/shots.c | 6 +++--- 1 file 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 #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 @@ -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"); -- cgit v1.2.3