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 ni...@apache.org on 2005/03/14 13:22:47 UTC
cvs commit: ws-axis/c/src/soap CharacterElement.cpp
nithya 2005/03/14 04:22:47
Modified: c/src/soap CharacterElement.cpp
Log:
added NULL value checking in setValue method
Revision Changes Path
1.22 +6 -0 ws-axis/c/src/soap/CharacterElement.cpp
Index: CharacterElement.cpp
===================================================================
RCS file: /home/cvs/ws-axis/c/src/soap/CharacterElement.cpp,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- CharacterElement.cpp 23 Nov 2004 17:21:04 -0000 1.21
+++ CharacterElement.cpp 14 Mar 2005 12:22:47 -0000 1.22
@@ -90,10 +90,16 @@
int CharacterElement::setValue(const AxisChar* pachValue)
{
+ if (pachValue !=NULL){
m_pachValue = new AxisChar[strlen(pachValue)+1];
strcpy(m_pachValue, pachValue);
return AXIS_SUCCESS;
+ }
+ else
+ {
+ return AXIS_FAIL;
+ }
}
bool CharacterElement::operator == ( const CharacterElement &objChEle)