summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2011-03-12 18:47:06 (GMT)
committerRemko Tronçon <git@el-tramo.be>2011-03-12 18:47:33 (GMT)
commit66ac08ab9a3e323e5257fffebe13aa1ee83f147e (patch)
treef90c99f6a8271934c573f9608faa17894a4b8fd7 /Swiften/VCards
parent0f81ad517619854d1918e398d287c89fd7653489 (diff)
downloadswift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.zip
swift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.tar.bz2
Allow empty hashes in cache.
Diffstat (limited to 'Swiften/VCards')
-rw-r--r--Swiften/VCards/VCardFileStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/VCards/VCardFileStorage.cpp b/Swiften/VCards/VCardFileStorage.cpp
index 444ce3f..db189ff 100644
--- a/Swiften/VCards/VCardFileStorage.cpp
+++ b/Swiften/VCards/VCardFileStorage.cpp
@@ -32,7 +32,7 @@ VCardFileStorage::VCardFileStorage(boost::filesystem::path dir) : vcardsPath(dir
getline(file, line);
std::pair<std::string, std::string> r = String::getSplittedAtFirst(line, ' ');
JID jid(r.second);
- if (jid.isValid() && !r.first.empty()) {
+ if (jid.isValid()) {
photoHashes.insert(std::make_pair(jid, r.first));
}
else {