You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by sh...@apache.org on 2009/06/18 18:22:19 UTC
svn commit: r786148 - /qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp
Author: shuston
Date: Thu Jun 18 16:22:19 2009
New Revision: 786148
URL: http://svn.apache.org/viewvc?rev=786148&view=rev
Log:
Correct order of args to memset(); fixes QPID-1787
Modified:
qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp
Modified: qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp?rev=786148&r1=786147&r2=786148&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/cluster/Cpg.cpp Thu Jun 18 16:22:19 2009
@@ -72,7 +72,7 @@
Cpg::Cpg(Handler& h) : IOHandle(new sys::IOHandlePrivate), handler(h), isShutdown(false) {
cpg_callbacks_t callbacks;
- ::memset(&callbacks, sizeof(callbacks), 0);
+ ::memset(&callbacks, 0, sizeof(callbacks));
callbacks.cpg_deliver_fn = &globalDeliver;
callbacks.cpg_confchg_fn = &globalConfigChange;
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org