diff options
Diffstat (limited to 'tests/gpg/t-keylist.c')
-rw-r--r-- | tests/gpg/t-keylist.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/gpg/t-keylist.c b/tests/gpg/t-keylist.c index b7354904..c8c71d0c 100644 --- a/tests/gpg/t-keylist.c +++ b/tests/gpg/t-keylist.c @@ -361,10 +361,9 @@ main (int argc, char **argv) key->subkeys->next->keyid, keys[i].sec_keyid ); exit (1); } - if (key->subkeys->next->fpr) + if (!key->subkeys->next->fpr) { - fprintf (stderr, "Secondary key has unexpectedly a fingerprint: %s\n", - key->subkeys->next->fpr); + fprintf (stderr, "Secondary key has unexpectedly no fingerprint\n"); exit (1); } if (key->subkeys->next->expires) |