From 3533c2661adbdd6a8e87bd34fb50c67c12744499 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 18 Mar 2006 23:35:51 +0000 Subject: Coverity CID 570: Remove impossible check. --- adventure/vocab.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'adventure') diff --git a/adventure/vocab.c b/adventure/vocab.c index f1ee2b95..6d361e21 100644 --- a/adventure/vocab.c +++ b/adventure/vocab.c @@ -1,4 +1,4 @@ -/* $NetBSD: vocab.c,v 1.12 2005/07/01 00:03:36 jmc Exp $ */ +/* $NetBSD: vocab.c,v 1.13 2006/03/18 23:35:51 christos Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -39,7 +39,7 @@ #if 0 static char sccsid[] = "@(#)vocab.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: vocab.c,v 1.12 2005/07/01 00:03:36 jmc Exp $"); +__RCSID("$NetBSD: vocab.c,v 1.13 2006/03/18 23:35:51 christos Exp $"); #endif #endif /* not lint */ @@ -184,7 +184,7 @@ vocab(const char *word, int type, int value) } exitloop2: /* hashed entry does not match */ - if (adr + 1 == hash || (adr == HTSIZE && hash == 0)) + if (adr + 1 == hash || hash == 0) errx(1,"Hash table overflow"); } } -- cgit v1.2.3-56-ge451