g10: Fix assert.

* g10/tofu.c (get_trust): Fix assert.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>.
This commit is contained in:
Neal H. Walfield 2015-10-18 19:08:18 +02:00
parent f77913e0ff
commit 128a456e77
1 changed files with 1 additions and 1 deletions

View File

@ -1676,7 +1676,7 @@ get_trust (struct db *dbs, const char *fingerprint, const char *email,
if (choice)
{
int c = ((size_t) choice - (size_t) choices) / 2;
assert (0 <= c && c <= 3);
assert (0 <= c && c <= 4);
switch (c)
{