ignore blank (unset) values when generating config checkums.
This commit is contained in:
parent
9b2eac1920
commit
fe098418f7
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue