print 'tries_left' only if the value is >= 0

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1903 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-09-19 19:47:34 +00:00
parent 60eeadb962
commit 3f5dc67981
1 changed files with 2 additions and 1 deletions

View File

@ -652,7 +652,8 @@ void print_pin_info(const struct sc_pkcs15_object *obj)
printf("\tReference : %d\n", pin->reference);
printf("\tType : %d\n", pin->type);
printf("\tPath : %s\n", path);
printf("\tTries left: %d\n", pin->tries_left);
if (pin->tries_left >= 0)
printf("\tTries left: %d\n", pin->tries_left);
}
int list_pins(void)