[ekiga] Fixed infinite loops in the loudmouth presentity code



commit d46d4cbe68983f077333e835a1741cc272d294a3
Author: Julien Puydt <jpuydt newton localdomain>
Date:   Thu Jul 28 16:23:23 2011 +0200

    Fixed infinite loops in the loudmouth presentity code
    
    Those didn't appear until now because the list was always either empty or a singleton...

 plugins/loudmouth/loudmouth-presentity.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/loudmouth/loudmouth-presentity.cpp b/plugins/loudmouth/loudmouth-presentity.cpp
index c87167c..e86d233 100644
--- a/plugins/loudmouth/loudmouth-presentity.cpp
+++ b/plugins/loudmouth/loudmouth-presentity.cpp
@@ -93,6 +93,7 @@ LM::Presentity::get_presence () const
 
 	best = iter->second;
       }
+      ++iter;
     }
     if (best.presence == "") {
 
@@ -122,6 +123,7 @@ LM::Presentity::get_status () const
 
 	best = iter->second;
       }
+      ++iter;
     }
     result = best.status;
   }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]