ignore blank (unset) values when generating config checkums.

This commit is contained in:
gfgtdf 2017-04-08 14:19:38 +02:00 committed by GitHub
parent 9b2eac1920
commit fe098418f7

View file

@ -1539,6 +1539,9 @@ std::string config::hash() const
i = 0;
for (const attribute &val : values)
{
if (val.second.blank()) {
continue;
}
for (std::string::const_iterator c = val.first.begin(); c != val.first.end(); ++c) {
hash_str[i] ^= *c;
if (++i == hash_length) i = 0;