|
|
|
@ -794,21 +794,15 @@ unsigned int KlamDB::getSigNos()
|
|
|
|
|
lastDownloadPaths = config->readListEntry("lastDownloadPaths");
|
|
|
|
|
dbdir = lastDownloadPaths.first();
|
|
|
|
|
|
|
|
|
|
#ifdef SUPPORT_CLAMAV_V095
|
|
|
|
|
if((engine = cl_engine_new()) == NULL) {
|
|
|
|
|
printf("Database initialization error: %s\n", cl_strerror(ret));;
|
|
|
|
|
cl_engine_free(engine);
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef SUPPORT_CLAMAV_V095
|
|
|
|
|
ret = cl_load((const char *)dbdir, engine, &no, CL_DB_STDOPT);
|
|
|
|
|
cl_engine_free(engine);
|
|
|
|
|
#else
|
|
|
|
|
ret = cl_load((const char *)dbdir, &engine, &no, CL_DB_STDOPT);
|
|
|
|
|
cl_free(engine);
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
kdDebug() << "no of sigs" << no << endl;
|
|
|
|
|
return no;
|
|
|
|
|
|
|
|
|
|