diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-03-12 18:52:35 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-03-12 18:52:35 (GMT) |
commit | 82ee11f5fc5be88baad3e3c7b626b078bda5d915 (patch) | |
tree | bbc295fb09be078361d77e74c8b577e33469148c /Swiften/VCards | |
parent | 66ac08ab9a3e323e5257fffebe13aa1ee83f147e (diff) | |
download | swift-82ee11f5fc5be88baad3e3c7b626b078bda5d915.zip swift-82ee11f5fc5be88baad3e3c7b626b078bda5d915.tar.bz2 |
Avoid warning on end of file in cache files.swift-1.0beta9
Diffstat (limited to 'Swiften/VCards')
-rw-r--r-- | Swiften/VCards/VCardFileStorage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swiften/VCards/VCardFileStorage.cpp b/Swiften/VCards/VCardFileStorage.cpp index db189ff..a246838 100644 --- a/Swiften/VCards/VCardFileStorage.cpp +++ b/Swiften/VCards/VCardFileStorage.cpp @@ -35,7 +35,7 @@ VCardFileStorage::VCardFileStorage(boost::filesystem::path dir) : vcardsPath(dir if (jid.isValid()) { photoHashes.insert(std::make_pair(jid, r.first)); } - else { + else if (!r.first.empty() || !r.second.empty()) { std::cerr << "Invalid entry in phashes file" << std::endl; } } |