summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-08-08 16:06:37 +0000
committerRobert Pösel <robyer@seznam.cz>2014-08-08 16:06:37 +0000
commit1e70e31843744f81d20a1360265405c29132c586 (patch)
tree0f720462e5c0364d7a74457d67f6894d1c5c7c30
parent6eb4372eb0979a27ef82ea289e10288457fa09d3 (diff)
Facebook: Crashfix (thanks ghazan)
git-svn-id: http://svn.miranda-ng.org/main/trunk@10127 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/FacebookRM/src/process.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/FacebookRM/src/process.cpp b/protocols/FacebookRM/src/process.cpp
index dfc9225151..2b5dfa8403 100644
--- a/protocols/FacebookRM/src/process.cpp
+++ b/protocols/FacebookRM/src/process.cpp
@@ -181,11 +181,11 @@ void FacebookProto::ProcessFriendList(void*)
continue;
facebook_user *fbu;
- ptrA id(getStringA(hContact, FACEBOOK_KEY_ID));
- if (id != NULL) {
+ std::string id = ptrA(getStringA(hContact, FACEBOOK_KEY_ID));
+ if (!id.empty()) {
std::map< std::string, facebook_user* >::iterator iter;
- if ((iter = friends.find(std::string(id))) != friends.end()) {
+ if ((iter = friends.find(id)) != friends.end()) {
// Found contact, update it and remove from map
fbu = iter->second;