check for null before use in debug log in SpiderColl::scanListForWinners

This commit is contained in:
Brian Rasmusson
2016-09-30 16:28:06 +02:00
parent bb14f100c1
commit 4f81d493f4

@ -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;