diff options
| author | christos <christos@NetBSD.org> | 2006-03-18 23:35:51 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 2006-03-18 23:35:51 +0000 |
| commit | f80221a1cd6fc464f666a61b9a656f882e633a33 (patch) | |
| tree | 45182d5ee7c3d2486b8245e49221860124b071a1 /games/adventure | |
| parent | 44fa0e017a9676fcb4f7b06163a61dd919bcdee1 (diff) | |
Coverity CID 570: Remove impossible check.
Diffstat (limited to 'games/adventure')
| -rw-r--r-- | games/adventure/vocab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/adventure/vocab.c b/games/adventure/vocab.c index f1ee2b951aa..6d361e21557 100644 --- a/games/adventure/vocab.c +++ b/games/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"); } } |
