libopensc: error message for success

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4009 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
viktor.tarasov 2010-02-09 15:15:02 +00:00
parent b28add8e3b
commit b8009bec07
1 changed files with 4 additions and 1 deletions

View File

@ -113,10 +113,13 @@ const char *sc_strerror(int error)
"Unknown error",
"PKCS#15 compatible smart card not found",
};
const char *no_errors = "No errors";
const int misc_base = -SC_ERROR_UNKNOWN;
const char **errors = NULL;
int count = 0, err_base = 0;
if (!error)
return no_errors;
if (error < 0)
error = -error;
if (error >= misc_base) {