mirror of
https://github.com/privacore/open-source-search-engine.git
synced 2025-07-10 02:06:08 -04:00
check for null before use in debug log in SpiderColl::scanListForWinners
This commit is contained in:
@ -2737,9 +2737,9 @@ bool SpiderColl::scanListForWinners ( ) {
|
||||
m_localTable.addScore(&sreq->m_siteHash32,1);
|
||||
m_localTable.addScore(&sreq->m_domHash32,1);
|
||||
|
||||
int32_t *tmpNum = (int32_t *)m_localTable.getValue( &( sreq->m_siteHash32 ) );
|
||||
logDebug( g_conf.m_logDebugSpider, "spider: sitequota: got %" PRId32" indexed docs for site from "
|
||||
"firstip of %s from url %s",
|
||||
*( (int32_t *)m_localTable.getValue( &( sreq->m_siteHash32 ) ) ),
|
||||
"firstip of %s from url %s", tmpNum ? *tmpNum : -1,
|
||||
iptoa( sreq->m_firstIp ),
|
||||
sreq->m_url );
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user