suppress annoying (but unimportant) error message

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1931 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
nils 2004-10-14 06:37:04 +00:00
parent fd5555bc09
commit c994105bcf
1 changed files with 2 additions and 0 deletions

View File

@ -211,8 +211,10 @@ int sc_enum_apps(struct sc_card *card)
size_t rec_size;
for (rec_nr = 1; ; rec_nr++) {
card->ctx->suppress_errors++;
r = sc_read_record(card, rec_nr, buf, sizeof(buf),
SC_RECORD_BY_REC_NR);
card->ctx->suppress_errors--;
if (r == SC_ERROR_RECORD_NOT_FOUND)
break;
SC_TEST_RET(card->ctx, r, "read_record() failed");