You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2006/08/06 19:44:01 UTC
svn commit: r429163 -
/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp
Author: jsdelfino
Date: Sun Aug 6 10:43:58 2006
New Revision: 429163
URL: http://svn.apache.org/viewvc?rev=429163&view=rev
Log:
Fix segmentation violation, stringData was a local variable allocated inside a switch statement, getting out of scope as soon as the switch closes. Changed it to be allocated from the heap instead.
Modified:
incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp
Modified: incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp
URL: http://svn.apache.org/viewvc/incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp?rev=429163&r1=429162&r2=429163&view=diff
==============================================================================
--- incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp (original)
+++ incubator/tuscany/cpp/sca/runtime/core/src/tuscany/sca/ws/EntryPointProxy.cpp Sun Aug 6 10:43:58 2006
@@ -321,9 +321,10 @@
break;
case Type::StringType:
{
- const char* stringData = inputDataObject->getCString(pl[i]);
+ const char** stringData = new const char*;
+ *stringData = inputDataObject->getCString(pl[i]);
//printf("inputDataObject has StringType named %s with value %s\n", name, stringData);
- operation.addParameter(&stringData);
+ operation.addParameter(stringData);
}
break;
case Type::DataObjectType:
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org