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:
parent
b28add8e3b
commit
b8009bec07
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue