std::string::find() will return 0 if the line starts with '.', but
it was not obvious from the existing code whether we tested for 0
or a string::npos since we treated the return value as a boolean.
Reported by Coverity (CID
1401631).
split=splitField(line,',');
if (split.second.empty())
split=splitField(line,'\t');
- if(!split.second.find('.')) // skip 'Hidden profile' in quantcast list.
+ if(split.second.find('.') == 0) // skip 'Hidden profile' in quantcast list.
continue;
pos=split.second.find('/');
if(pos != string::npos) // alexa has whole urls in the list now.