[dss-commits] digitalSTROM Server branch, master, updated. 9ff3a80a5dc1de028557c8bf4b8f6ec459e7e888

git version control dss-commits at forum.digitalstrom.org
Wed Dec 2 16:46:43 CET 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "digitalSTROM Server".

The branch, master has been updated
       via  9ff3a80a5dc1de028557c8bf4b8f6ec459e7e888 (commit)
      from  3bfbea8c768b95375f07c044205f810e8eb3e5b5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9ff3a80a5dc1de028557c8bf4b8f6ec459e7e888
Author: Johannes Winkelmann <johannes.winkelmann at aizo.com>
Date:   Wed Dec 2 16:46:28 2009 +0100

    Fix an iterator related crash introduced in the last change
    
    
    boost::ptr_vector<>::erase() may invalidate the end() iterator,
    thus it's dangerous to cache that value

-----------------------------------------------------------------------

Changes:
diff --git a/core/event.cpp b/core/event.cpp
index a76570b..f96a05f 100644
--- a/core/event.cpp
+++ b/core/event.cpp
@@ -519,8 +519,8 @@ namespace dss {
     }
 
     m_EventsMutex.lock();
-    for(boost::ptr_vector<ScheduledEvent>::iterator ipSchedEvt = m_ScheduledEvents.begin(), e = m_ScheduledEvents.end();
-        ipSchedEvt != e; )
+    for(boost::ptr_vector<ScheduledEvent>::iterator ipSchedEvt = m_ScheduledEvents.begin();
+        ipSchedEvt != m_ScheduledEvents.end(); )
     {
       DateTime next = ipSchedEvt->getSchedule().getNextOccurence(now);
       if(DebugEventRunner) {


hooks/post-receive
-- 
digitalSTROM Server


More information about the dss-commits mailing list