freebsd-ports/net/frickin/files/patch-session.cpp
Pietro Cerutti 0b20a3ef6a - Fix build with GCC 4.2
PR:		125220
Submitted by:	Alex Miller <asm@asm.kiev.ua> (maintainer)
2008-07-07 11:11:16 +00:00

12 lines
398 B
C++

--- src/session.cpp.orig 2007-01-13 19:28:47.000000000 +0200
+++ src/session.cpp 2008-07-03 16:33:51.000000000 +0300
@@ -130,7 +130,7 @@
Session* Session::detatch(Client* a_Client)
{
- list<Client*>::iterator clientIter = NULL;
+ list<Client*>::iterator clientIter = m_ClientList.end();
assert(a_Client);
clientIter = find(m_ClientList.begin(), m_ClientList.end(), a_Client);