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/Avatars
parent0f81ad517619854d1918e398d287c89fd7653489 (diff)
downloadswift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.zip
swift-contrib-66ac08ab9a3e323e5257fffebe13aa1ee83f147e.tar.bz2
Allow empty hashes in cache.
Diffstat (limited to 'Swiften/Avatars')
-rw-r--r--Swiften/Avatars/AvatarFileStorage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/Avatars/AvatarFileStorage.cpp b/Swiften/Avatars/AvatarFileStorage.cpp
index 3ff78e4..62dfdf6 100644
--- a/Swiften/Avatars/AvatarFileStorage.cpp
+++ b/Swiften/Avatars/AvatarFileStorage.cpp
@@ -26,7 +26,7 @@ AvatarFileStorage::AvatarFileStorage(const boost::filesystem::path& avatarsDir,
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()) {
jidAvatars.insert(std::make_pair(jid, r.first));
}
else {