diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2023-01-22 11:09:58 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2023-01-22 11:09:58 +0100 |
commit | d5b88d19a67d76d296f2f68b2b1923791f2ef449 (patch) | |
tree | b3bf82d94b6aad6885e3754098e42847b02eaa2b /src | |
parent | a28d15e49252a42339b9c5810f0a975979c21830 (diff) | |
download | klamav-d5b88d19a67d76d296f2f68b2b1923791f2ef449.tar.gz klamav-d5b88d19a67d76d296f2f68b2b1923791f2ef449.zip |
Add check to see if the libclamav API uses cl_error_t for return codes.r14.1.0
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'src')
-rw-r--r-- | src/dbviewer.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dbviewer.cpp b/src/dbviewer.cpp index 7d5e200..c085ddd 100644 --- a/src/dbviewer.cpp +++ b/src/dbviewer.cpp @@ -839,7 +839,11 @@ void KlamDB::addVirusName(char *start) unsigned int KlamDB::getSigNos() { +# if defined(USE_CL_ERROR_T) cl_error_t ret = CL_CLEAN; +# else + unsigned int ret= 0; +# endif unsigned int no = 0; struct cl_engine *engine = NULL; TQStringList lastDownloadPaths; |