summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2023-01-22 11:09:58 +0100
committerSlávek Banko <slavek.banko@axis.cz>2023-01-22 11:09:58 +0100
commitd5b88d19a67d76d296f2f68b2b1923791f2ef449 (patch)
treeb3bf82d94b6aad6885e3754098e42847b02eaa2b /src
parenta28d15e49252a42339b9c5810f0a975979c21830 (diff)
downloadklamav-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.cpp4
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;