Browse Source

do not test empty twice

synchronous
Volker Birk 5 years ago
parent
commit
62c71378d1
  1. 2
      passphrase_cache.cc

2
passphrase_cache.cc

@ -60,7 +60,7 @@ namespace pEp {
if (callee(""))
return true;
if (callee(_stored))
if (!_stored.empty() && callee(_stored))
return true;
for (auto entry=_cache.begin(); entry!=_cache.end(); ++entry) {

Loading…
Cancel
Save