summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/process.cpp
diff options
context:
space:
mode:
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);