- fixed exit code

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@429 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
okir 2002-04-03 11:56:59 +00:00
parent ae8e3908c4
commit 5d687de06f
1 changed files with 1 additions and 1 deletions

View File

@ -269,7 +269,7 @@ done: if (r < 0) {
sc_disconnect_card(card, 0);
}
sc_release_context(ctx);
return r? 1 : 0;
return r < 0? 1 : 0;
}
static int