You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/02/22 13:20:48 UTC

[jira] Assigned: (AXISCPP-442) The methods in the stubs do not initialise the return value

     [ http://issues.apache.org/jira/browse/AXISCPP-442?page=history ]

Samisa Abeysinghe reassigned AXISCPP-442:
-----------------------------------------

    Assign To: Samisa Abeysinghe

> The methods in the stubs do not initialise the return value
> -----------------------------------------------------------
>
>          Key: AXISCPP-442
>          URL: http://issues.apache.org/jira/browse/AXISCPP-442
>      Project: Axis-C++
>         Type: Bug
>   Components: WSDL processing
>  Environment: n/a
>     Reporter: Fred Preston
>     Assignee: Samisa Abeysinghe

>
> The following code sample highlights the problem:-
> xsd__dateTime Service::updateDateTime(xsd__dateTime Value0) 
> { 
>         xsd__dateTime Ret; 
>         try 
>         {        if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER, NORMAL_CHANNEL)) return Ret; 
> ... 
> When the code is compiled, the following error results: "<dir>\Service.cpp(nnnn) : error C4700: local variable 'Ret' used without having been initialized" 
> The solution to the problem would be to initialise the return value when it is declared.  Thus the code would become:-
> xsd__dateTime Service::updateDateTime(xsd__dateTime Value0) 
> { 
>         xsd__dateTime Ret = {0,0,0,0,0,0,0,0,0}; 
>         try 
>         {
>         if (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER, NORMAL_CHANNEL)) return Ret; 
> ... 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira