summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/process.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2012-09-10 07:58:13 +0000
committerRobert Pösel <robyer@seznam.cz>2012-09-10 07:58:13 +0000
commit90446ef4497242d5513c14391c2711c04f93b6ae (patch)
treeb5eec69478e863594c4b3f8a2b41cc26f56b39b5 /protocols/FacebookRM/process.cpp
parenta2dd6635dbe650f5f475206345b9e0012e4e979a (diff)
Facebook: Small fix for getting friendship requests.
git-svn-id: http://svn.miranda-ng.org/main/trunk@1558 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/process.cpp')
-rw-r--r--protocols/FacebookRM/process.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/FacebookRM/process.cpp b/protocols/FacebookRM/process.cpp
index c369585208..f1481ba8ad 100644
--- a/protocols/FacebookRM/process.cpp
+++ b/protocols/FacebookRM/process.cpp
@@ -555,7 +555,7 @@ void FacebookProto::ProcessFriendRequests( void* )
std::string::size_type pos2 = 0;
bool last = false;
- while (!last) {
+ while (!last && !reqs.empty()) {
std::string req;
if ((pos2 = reqs.find("<div class=\"mRequestItem", pos)) != std::string::npos) {
req = reqs.substr(pos, pos2 - pos);