Merge pull request #788 from csoler/v0.6-PRTest

V0.6 pr test
This commit is contained in:
csoler 2017-04-25 10:01:00 +02:00 committed by GitHub
commit d4a4d03ab0

View File

@ -144,6 +144,11 @@ std::string bloomFilter::getFilter()
bytes++;
}
if (bytes==0)
{
std::cerr << "(EE) Error. Cannot allocate memory for 0 byte in " << __PRETTY_FUNCTION__ << std::endl;
return std::string();
}
// convert to binary array.
uint8_t *tmparray = (uint8_t *) malloc(bytes);