summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/json.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2016-09-13 20:55:43 +0000
committerRobert Pösel <robyer@seznam.cz>2016-09-13 20:55:43 +0000
commit50ab5fccce7607a788ab26c77f43dd3198c1d7c6 (patch)
treeaab55b6ff389d1dfeb70bbbf2e944c6559b468a6 /protocols/FacebookRM/src/json.cpp
parenta6b06e8fee136a38231c3c15a438fe5043ed82eb (diff)
Facebook: Fix errors from Coverity
git-svn-id: http://svn.miranda-ng.org/main/trunk@17294 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/json.cpp')
-rw-r--r--protocols/FacebookRM/src/json.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/FacebookRM/src/json.cpp b/protocols/FacebookRM/src/json.cpp
index 19597bf2bd..bf1ed05a38 100644
--- a/protocols/FacebookRM/src/json.cpp
+++ b/protocols/FacebookRM/src/json.cpp
@@ -714,8 +714,10 @@ int facebook_json_parser::parse_messages(std::string *pData, std::vector<faceboo
auto participant = participants.find(from_id);
if (participant == participants.end()) {
// TODO: load name of this participant
- participant->second.user_id = from_id;
- proto->AddChatContact(tid.c_str(), participant->second, true);
+ chatroom_participant new_participant;
+ new_participant.user_id = from_id;
+ new_participant.nick = from_id;
+ proto->AddChatContact(tid.c_str(), new_participant, true);
}
participant = participants.find(from_id);