You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by na...@apache.org on 2006/09/15 23:53:08 UTC
svn commit: r446750 - /webservices/axis/trunk/c/src/transport/SOAPTransport.h
Author: nadiramra
Date: Fri Sep 15 14:53:07 2006
New Revision: 446750
URL: http://svn.apache.org/viewvc?view=rev&rev=446750
Log:
AXISCPP-999 Segmentation fault in SOAPTransport.h
Modified:
webservices/axis/trunk/c/src/transport/SOAPTransport.h
Modified: webservices/axis/trunk/c/src/transport/SOAPTransport.h
URL: http://svn.apache.org/viewvc/webservices/axis/trunk/c/src/transport/SOAPTransport.h?view=diff&rev=446750&r1=446749&r2=446750
==============================================================================
--- webservices/axis/trunk/c/src/transport/SOAPTransport.h (original)
+++ webservices/axis/trunk/c/src/transport/SOAPTransport.h Fri Sep 15 14:53:07 2006
@@ -200,6 +200,13 @@
class SOAPTransport : public AxisIOStream
{
public:
+ SOAPTransport()
+ {
+ m_pcEndpointUri = NULL;
+ m_pcUsername = NULL;
+ m_pcPassword = NULL;
+ }
+
virtual ~SOAPTransport()
{
if (m_pcUsername)
@@ -522,11 +529,8 @@
*/
void setUsername(const char* pcUsername)
{
- if (m_pcUsername)
- {
- delete[]m_pcUsername;
- m_pcUsername = NULL;
- }
+ delete [] m_pcUsername;
+ m_pcUsername = NULL;
if (!pcUsername)
return;
@@ -537,11 +541,8 @@
void setPassword (const char *pcPassword)
{
- if (m_pcPassword)
- {
- delete[]m_pcPassword;
- m_pcPassword = NULL;
- }
+ delete [] m_pcPassword;
+ m_pcPassword = NULL;
if (!pcPassword)
return;
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org