soc.2009.transport: a9a27a06: Test callback before calling it
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Mon Jun 8 04:10:38 EDT 2009
-----------------------------------------------------------------
Revision: a9a27a06a1696a48a14b7d630279a92ad0f95e0d
Ancestor: 40f43daf53f689512cd627db26a6be31def2b41f
Author: hanzz at soc.pidgin.im
Date: 2009-06-08T08:04:39
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/a9a27a06a1696a48a14b7d630279a92ad0f95e0d
Modified files:
adhocrepeater.cpp
ChangeLog:
Test callback before calling it
-------------- next part --------------
============================================================
--- adhocrepeater.cpp 18d0caedc4d934b31225fd9e18007f3a4aa3b0e6
+++ adhocrepeater.cpp e6b8a4ec9bf6bb92e424fa5b9ef5e131020fa0bb
@@ -181,7 +181,9 @@ bool AdhocRepeater::handleIq(const IQ &s
int index;
i >> index;
if (m_actions.find(index) != m_actions.end()) {
- ((PurpleRequestActionCb) m_actions[index])(m_requestData,index);
+ PurpleRequestActionCb callback = (PurpleRequestActionCb) m_actions[index];
+ if (callback)
+ (callback)(m_requestData,index);
}
}
More information about the Commits
mailing list