ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dami...@apache.org
Subject cvs commit: ws-axis/c/samples/client/interoptests/doclitgroupB InteropGroupBClient.cpp
Date Tue, 27 Apr 2004 09:24:23 GMT
damitha     2004/04/27 02:24:23

  Modified:    c/samples/client/interoptests/doclitgroupB
                        InteropGroupBClient.cpp
  Log:
  fixed the segfault that comes after all methods executed
  
  Revision  Changes    Path
  1.3       +5 -5      ws-axis/c/samples/client/interoptests/doclitgroupB/InteropGroupBClient.cpp
  
  Index: InteropGroupBClient.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/samples/client/interoptests/doclitgroupB/InteropGroupBClient.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- InteropGroupBClient.cpp	6 Apr 2004 05:37:50 -0000	1.2
  +++ InteropGroupBClient.cpp	27 Apr 2004 09:24:23 -0000	1.3
  @@ -27,12 +27,12 @@
   	SOAPArrayStruct sas;
   	sas.varFloat = 12345.67890;
   	sas.varInt = 5000;
  -	sas.varString = "varString content of SOAPArrayStruct";
  +	sas.varString = strdup("varString content of SOAPArrayStruct");
   	sas.varArray.m_Array = new AxisChar*[ARRAYSIZE];
   	sas.varArray.m_Size = ARRAYSIZE;
   	for (x=0; x<ARRAYSIZE; x++)
   	{
  -		sas.varArray.m_Array[x] = "content of string array element";
  +		sas.varArray.m_Array[x] = strdup("content of string array element");
   	}
   	printf("invoking echoNestedArray...\n");
   	if (ws.echoNestedArray(&sas) != NULL)
  @@ -44,11 +44,11 @@
   	SOAPStructStruct sss;
   	sss.varFloat = 12345.67890;
   	sss.varInt = 5000;
  -	sss.varString = "varString content of SOAPStructStruct";
  +	sss.varString = strdup("varString content of SOAPStructStruct");
   	sss.varStruct = new SOAPStruct();
   	sss.varStruct->varFloat = 67890.12345;
   	sss.varStruct->varInt = 54321;
  -	sss.varStruct->varString = "varString content of SOAPStruct";
  +	sss.varStruct->varString = strdup("varString content of SOAPStruct");
   	printf("invoking echoNestedStruct...\n");
   	if (ws.echoNestedStruct(&sss) != NULL)
   		printf("successful\n");
  @@ -67,7 +67,7 @@
   	SOAPStruct ss;
   	ss.varFloat = 12345.67890;
   	ss.varInt = 5000;
  -	ss.varString = "content of string passed";
  +	ss.varString = strdup("content of string passed");
   	char* outStr;
   	int outInt;
   	float outFloat;
  
  
  

Mime
View raw message