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/10/04 11:13:46 UTC

svn commit: r293572 - /webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c

Author: samisa
Date: Tue Oct  4 02:13:36 2005
New Revision: 293572

URL: http://svn.apache.org/viewcvs?rev=293572&view=rev
Log:
Fixed invalid pointer check issue

Modified:
    webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c

Modified: webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c?rev=293572&r1=293571&r2=293572&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c (original)
+++ webservices/axis2/trunk/c/modules/xml/guththila/src/guththila_xml_stream_writer.c Tue Oct  4 02:13:36 2005
@@ -173,7 +173,9 @@
         guththila_xml_stream_writer_end_start_element(stream_writer);
 
         char* current_prefix = guththila_xml_stream_writer_get_prefix(stream_writer, namespace_uri);
-        int is_current = ( strcmp(prefix, current_prefix) != 0 );
+        int is_current = 0;
+        if(current_prefix)
+            is_current = ( strcmp(prefix, current_prefix) != 0 );
         fputs("<", stream_writer->writer);
 
         if (prefix && strlen(prefix) != 0)