You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2005/02/11 12:53:11 UTC

cvs commit: ws-axis/c/src/server/apache ApacheTransport.cpp

samisa      2005/02/11 03:53:10

  Modified:    c/src/server/apache ApacheTransport.cpp
  Log:
  Applied memory management best practices.
  
  Revision  Changes    Path
  1.6       +2 -2      ws-axis/c/src/server/apache/ApacheTransport.cpp
  
  Index: ApacheTransport.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/src/server/apache/ApacheTransport.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- ApacheTransport.cpp	8 Nov 2004 08:47:19 -0000	1.5
  +++ ApacheTransport.cpp	11 Feb 2005 11:53:10 -0000	1.6
  @@ -176,7 +176,7 @@
   
   const char* ApacheTransport::getTransportProperty(AXIS_TRANSPORT_INFORMATION_TYPE eType)
   {
  -    const char* pcValue;
  +    const char* pcValue = NULL;
   	/* the member, "path" of "parsed_uri" contains the uri of the
          request (i.e "/abc/xyz" part of http://somehost/abc/xyz) */
       const char* pcUriPath =  ((request_rec*)m_pContext)->parsed_uri.path;
  @@ -236,7 +236,7 @@
       /* ap_table_elts returns an array_header struct. The nelts element of that 
        * struct contains the number of input header elements. Finally assigns that
        * to the axis soap data structure. */
  -    array_header* arr;
  +    array_header* arr = NULL;
   	int headercount = ap_table_elts(((request_rec*)m_pContext)->headers_in)->nelts;
   	Ax_header* pHeaders = 0;
       /* casting req_rec->headers_in to axis header struct and assigning that to